mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
update
This commit is contained in:
parent
6101b62b34
commit
ae93301a26
@ -52,18 +52,13 @@ class MetaLiteController extends Controller
|
||||
private function requests() {
|
||||
|
||||
if (is_null($this->type)) {
|
||||
return response()->json([
|
||||
'error' => 'Missing type'
|
||||
], 400);
|
||||
return ['error' => 'Missing type'];
|
||||
}
|
||||
|
||||
if (is_null($this->period)) {
|
||||
return response()->json([
|
||||
'error' => 'Missing period'
|
||||
], 400);
|
||||
return ['error' => 'Missing period'];
|
||||
}
|
||||
|
||||
|
||||
$requests = [];
|
||||
$data = app('redis')->keys('requests:'.$this->period.':*'.$this->type.'*');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user