Removed debugging

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-09-24 17:29:40 +01:00
parent 5fb43dd159
commit 0ce5832b6c

View file

@ -161,36 +161,28 @@ class AssetsController extends Controller
switch ($action) { switch ($action) {
// Audit (singular) is left over from earlier legacy APIs // Audit (singular) is left over from earlier legacy APIs
case 'audits' : case 'audits' :
\Log::error('audit/audits');
switch ($upcoming_status) { switch ($upcoming_status) {
case 'due': case 'due':
\Log::error('due');
$assets->DueForAudit($settings); $assets->DueForAudit($settings);
break; break;
case 'overdue': case 'overdue':
\Log::error('overdue');
$assets->OverdueForAudit(); $assets->OverdueForAudit();
break; break;
case 'due-or-overdue': case 'due-or-overdue':
\Log::error('due-or-overdue');
$assets->DueOrOverdueForAudit($settings); $assets->DueOrOverdueForAudit($settings);
break; break;
} }
break; break;
case 'checkins': case 'checkins':
\Log::error('checkins');
switch ($upcoming_status) { switch ($upcoming_status) {
case 'due': case 'due':
\Log::error('due');
$assets->DueForCheckin($settings); $assets->DueForCheckin($settings);
break; break;
case 'overdue': case 'overdue':
\Log::error('overdue');
$assets->OverdueForCheckin(); $assets->OverdueForCheckin();
break; break;
case 'due-or-overdue': case 'due-or-overdue':
\Log::error('due-or-overdue');
$assets->DueOrOverdueForCheckin($settings); $assets->DueOrOverdueForCheckin($settings);
break; break;
} }