mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
add proper limit
This commit is contained in:
parent
a8ff8bf65f
commit
2d6a3c807f
@ -8,7 +8,7 @@ class MetaLiteController extends Controller
|
||||
private const VALID_REQUESTS = ['status', 'requests'];
|
||||
private const VALID_TYPE = ['anime', 'manga', 'character', 'people', 'person', 'search', 'top', 'season'];
|
||||
private const VALID_PERIOD = ['today', 'weekly', 'monthly'];
|
||||
private const LIMIT = 10000;
|
||||
private const LIMIT = 10;
|
||||
|
||||
private $request;
|
||||
private $type;
|
||||
@ -82,7 +82,7 @@ class MetaLiteController extends Controller
|
||||
|
||||
arsort($requests);
|
||||
|
||||
return $requests;
|
||||
return array_slice($requests, 0, self::LIMIT);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user