Fix API error

This commit is contained in:
James Cole
2023-11-05 14:31:05 +01:00
parent c0cc896102
commit 998fed7782
5 changed files with 7 additions and 7 deletions

View File

@@ -137,7 +137,9 @@ abstract class Controller extends BaseController
if (null !== $value) {
$bag->set($integer, (int)$value);
}
if (null === $value && 'limit' === $integer && auth()->check()) {
if (null === $value &&
'limit' === $integer && // @phpstan-ignore-line
auth()->check()) {
// set default for user:
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
$bag->set($integer, $pageSize);