Prevent XL Vask list automation execution

This commit is contained in:
Jeppe B
2026-06-01 20:54:44 +02:00
parent 70080086da
commit a466c6291c
2 changed files with 14 additions and 1 deletions
@@ -67,7 +67,7 @@ class xlvaskUsageLogsRoute
->setAdditionalWhereClause("`Customer` NOT IN ('" . implode("', '", $xlvask_usage_log::$default_customers) . "')")
->listObjectsWithPaginationIfSet(
function ($log) use ($response_includes_items_link, $response_includes_items, $xlvask_usage_logs, $user, $xlvask, $automation_service, &$linked_order_ids_by_wash_id) {
$automation = $automation_service->evaluateUsageLogRow($log, (int)$user->id, true);
$automation = $automation_service->evaluateUsageLogRow($log, (int)$user->id, false);
// Remove the 'id' field from the log
$id = (int)$log['id'];
unset($log['id']);