Use updated scopes

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-04-26 14:02:56 +01:00
parent dfaf01e8aa
commit bf058bd5c6

View file

@ -159,10 +159,13 @@ class AssetsController extends Controller
if (Gate::allows('audit', Asset::class)) { if (Gate::allows('audit', Asset::class)) {
switch ($audit) { switch ($audit) {
case 'due': case 'due':
$assets->DueOrOverdueForAudit($settings); $assets->DueForAudit($settings);
break; break;
case 'overdue': case 'overdue':
$assets->overdueForAudit($settings); $assets->OverdueForAudit($settings);
break;
case 'duooroverdue':
$assets->DueOrOverdueForAudit($settings);
break; break;
} }
} }