Merge pull request #468 from jikan-me/indexer-improvements1

 Added sorting of mal ids when indexing entries
This commit is contained in:
pushrbx 2024-01-19 22:22:48 +00:00 committed by GitHub
commit 2d1973d00b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class AnimeIndexer extends Command
);
$ids = array_merge($ids['sfw'], $ids['nsfw']);
sort($ids, SORT_NUMERIC);
Storage::put('indexer/anime_mal_id.json', json_encode($ids));
return json_decode(Storage::get('indexer/anime_mal_id.json'));

View File

@ -152,6 +152,7 @@ class MangaIndexer extends Command
);
$ids = array_merge($ids['sfw'], $ids['nsfw']);
sort($ids, SORT_NUMERIC);
Storage::put('indexer/manga_mal_id.json', json_encode($ids));
return json_decode(Storage::get('indexer/manga_mal_id.json'));