This commit is contained in:
DariusIII
2023-03-31 17:01:28 +02:00
parent 4adc19c178
commit 53ccfc2616
3 changed files with 23 additions and 22 deletions
+10 -10
View File
@@ -181,16 +181,16 @@ class ApiV2Controller extends BasePageController
$user = User::query()->where('api_token', $request->input('api_token'))->first();
$catExclusions = User::getCategoryExclusionForApi($request);
$minSize = $request->has('minsize') && $request->input('minsize') > 0 ? $request->input('minsize') : 0;
$this->api->verifyEmptyParameter($request,'id');
$this->api->verifyEmptyParameter($request,'vid');
$this->api->verifyEmptyParameter($request,'tvdbid');
$this->api->verifyEmptyParameter($request,'traktid');
$this->api->verifyEmptyParameter($request,'rid');
$this->api->verifyEmptyParameter($request,'tvmazeid');
$this->api->verifyEmptyParameter($request,'imdbid');
$this->api->verifyEmptyParameter($request,'tmdbid');
$this->api->verifyEmptyParameter($request,'season');
$this->api->verifyEmptyParameter($request,'ep');
$this->api->verifyEmptyParameter($request, 'id');
$this->api->verifyEmptyParameter($request, 'vid');
$this->api->verifyEmptyParameter($request, 'tvdbid');
$this->api->verifyEmptyParameter($request, 'traktid');
$this->api->verifyEmptyParameter($request, 'rid');
$this->api->verifyEmptyParameter($request, 'tvmazeid');
$this->api->verifyEmptyParameter($request, 'imdbid');
$this->api->verifyEmptyParameter($request, 'tmdbid');
$this->api->verifyEmptyParameter($request, 'season');
$this->api->verifyEmptyParameter($request, 'ep');
$maxAge = $this->api->maxAge($request);
UserRequest::addApiRequest($request->input('api_token'), $request->getRequestUri());
event(new UserAccessedApi($user));