This commit is contained in:
irfan-dahir 2018-04-23 17:23:07 +05:00
parent 6101b62b34
commit ae93301a26

View File

@ -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.'*');