Correct index of id for kitsu sync

This commit is contained in:
Timothy Warren 2018-01-10 16:43:49 -05:00
parent 39031ccf3e
commit 34996f009b

View File

@ -481,7 +481,7 @@ class SyncKitsuWithMal extends BaseCommand {
{ {
$responseData = Json::decode($response); $responseData = Json::decode($response);
$id = $itemsToUpdate[$key]['mal_id']; $id = $itemsToUpdate[$key]['id'];
if ( ! array_key_exists('errors', $responseData)) if ( ! array_key_exists('errors', $responseData))
{ {
$verb = ($action === 'update') ? 'updated' : 'created'; $verb = ($action === 'update') ? 'updated' : 'created';