added sorting of mal ids when indexing entries

This commit is contained in:
pushrbx 2024-01-17 21:54:54 +00:00 committed by GitHub
parent bb71a7a9eb
commit c9e8f797a1
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'));