Remove unused cron tasks and debug print statements

Commented out unused cron tasks 'CheckUnfulfilledBookings' and 'SyncBookings' in the cron configuration. Also removed a debug print statement from the booking wash form to clean up the code.
This commit is contained in:
Jepp9350
2025-04-10 13:15:29 +02:00
parent 6e77269418
commit 4f19efb6f9
2 changed files with 13 additions and 16 deletions
+13 -13
View File
@@ -21,19 +21,19 @@ $response_cron = [];
// Define the cron tasks
$cron_tasks = [
'CheckUnfulfilledBookings' => [
'interval' => 86400, // 24 hours
'last_run' => 0,
'next_run' => 0,
'time' => '15:00',
'function' => 'checkUnfulfilledBookings',
],
'SyncBookings' => [
'interval' => 60, // 1 minute
'last_run' => 0,
'next_run' => 0,
'function' => 'syncBookings',
],
// 'CheckUnfulfilledBookings' => [
// 'interval' => 86400, // 24 hours
// 'last_run' => 0,
// 'next_run' => 0,
// 'time' => '15:00',
// 'function' => 'checkUnfulfilledBookings',
// ],
// 'SyncBookings' => [
// 'interval' => 60, // 1 minute
// 'last_run' => 0,
// 'next_run' => 0,
// 'function' => 'syncBookings',
// ],
'SyncLogs' => [
'interval' => 300, // 5 minutes
'last_run' => 0,
@@ -58,9 +58,6 @@ class book_wash_f extends form_helper_c
$department = (new departments_o())->selectId(self::getSanitizedData('department_id'));
// Get the bookings_new object
$bookings = new bookings_o();
print_r(
self::getSanitizedData('wash_type')
);
// Check if the wash type contains the interior wash
$wants_wash_certificate = (bool)self::getSanitizedData('wants_wash_certificate');
if (in_array(3, self::getSanitizedData('wash_type'))) {