Version 5.1 - All the GraphQL #32
@ -48,7 +48,7 @@ final class Model {
|
||||
use MangaTrait;
|
||||
use MutationTrait;
|
||||
|
||||
protected const LIST_PAGE_SIZE = 100;
|
||||
protected const LIST_PAGE_SIZE = 75;
|
||||
|
||||
/**
|
||||
* @var ListItem
|
||||
@ -367,7 +367,7 @@ final class Model {
|
||||
'kind' => $type,
|
||||
],
|
||||
'include' => "{$type},{$type}.mappings",
|
||||
'sort' => '-updated_at'
|
||||
// 'sort' => '-updated_at'
|
||||
];
|
||||
|
||||
return $this->getRawSyncList($type, $options);
|
||||
|
@ -362,16 +362,19 @@ final class RequestBuilder extends APIRequestBuilder {
|
||||
|
||||
// Any other type of failed request
|
||||
if ($statusCode > 299 || $statusCode < 200)
|
||||
{
|
||||
if ($logger)
|
||||
{
|
||||
$logger->warning('Non 2xx response for api call', (array)$response);
|
||||
}
|
||||
dump($rawBody);
|
||||
die();
|
||||
// throw new FailedResponseException('Failed to get the proper response from the API');
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
return Json::decode($rawBody);
|
||||
}
|
||||
catch (JsonException $e)
|
||||
{
|
||||
// dump($e);
|
||||
dump($rawBody);
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
@ -54,8 +54,6 @@ abstract class BaseCommand extends Command {
|
||||
$message = implode("\n", $message);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// color message
|
||||
$message = Colors::colorize($message, $fgColor, $bgColor);
|
||||
|
||||
@ -66,11 +64,6 @@ abstract class BaseCommand extends Command {
|
||||
|
||||
echo "\n";
|
||||
}
|
||||
catch (ConsoleException $e)
|
||||
{
|
||||
// oops
|
||||
}
|
||||
}
|
||||
|
||||
public function echo(string $message): void
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user