mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
added sorting of mal ids when indexing entries
This commit is contained in:
parent
bb71a7a9eb
commit
c9e8f797a1
@ -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'));
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user