Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit d13ad92dd1 - Show all commits

View File

@ -403,7 +403,7 @@ class Model {
* @return array * @return array
*/ */
public function getFullAnimeList(array $options = [ public function getFullAnimeList(array $options = [
'include' => 'media.mappings' 'include' => 'anime.mappings'
]): array ]): array
{ {
$status = $options['filter']['status'] ?? ''; $status = $options['filter']['status'] ?? '';

View File

@ -112,7 +112,7 @@ class SyncKitsuWithMal extends BaseCommand {
if ( ! empty($data['updateKitsu'])) if ( ! empty($data['updateKitsu']))
{ {
print_r($data['updateKitsu']); // print_r($data['updateKitsu']);
$count = count($data['updateKitsu']); $count = count($data['updateKitsu']);
$this->echoBox("Updating {$count} outdated Kitsu {$type} list items"); $this->echoBox("Updating {$count} outdated Kitsu {$type} list items");
$this->updateKitsuListItems($data['updateKitsu'], $type); $this->updateKitsuListItems($data['updateKitsu'], $type);
@ -244,6 +244,7 @@ class SyncKitsuWithMal extends BaseCommand {
foreach($data['data'] as $listItem) foreach($data['data'] as $listItem)
{ {
$id = $listItem['relationships'][$type]['data']['id']; $id = $listItem['relationships'][$type]['data']['id'];
$potentialMappings = $includes[$type][$id]['relationships']['mappings']; $potentialMappings = $includes[$type][$id]['relationships']['mappings'];
$malId = NULL; $malId = NULL;
@ -291,7 +292,6 @@ class SyncKitsuWithMal extends BaseCommand {
foreach($missingMalIds as $mid) foreach($missingMalIds as $mid)
{ {
// print_r($malList[$mid]);
$itemsToAddToKitsu[] = array_merge($malList[$mid]['data'], [ $itemsToAddToKitsu[] = array_merge($malList[$mid]['data'], [
'id' => $this->kitsuModel->getKitsuIdFromMALId($mid, $type), 'id' => $this->kitsuModel->getKitsuIdFromMALId($mid, $type),
'type' => $type 'type' => $type