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:
@@ -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'))) {
|
||||
|
||||
Reference in New Issue
Block a user