From 3d39c40b35507c21950929939efeb60f9228cca6 Mon Sep 17 00:00:00 2001 From: paulandm Date: Wed, 2 Oct 2024 01:26:17 +0200 Subject: [PATCH] Move the ical invite buffer back to 10 minutes Move the ical invite buffer back to 10 minutes --- classes/task/send_ical_notifications.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/task/send_ical_notifications.php b/classes/task/send_ical_notifications.php index b5c08126..25a7ddc9 100644 --- a/classes/task/send_ical_notifications.php +++ b/classes/task/send_ical_notifications.php @@ -73,7 +73,8 @@ public function execute() { } /** - * Get zoom events created/modified in the last hour, but ignore the last 2 minutes. + * Get zoom events created/modified in the last hour, but ignore the last 10 minutes. + * This allows the user to still make adjustments to the event before the ical invite is sent out. * @return array */ private function get_zoom_events_to_notify() { @@ -84,7 +85,7 @@ private function get_zoom_events_to_notify() { WHERE modulename = :zoommodulename AND eventtype = :zoomeventtype AND timemodified >= (unix_timestamp() - (60 * 60)) - AND timemodified <= (unix_timestamp() - (2 * 60))'; + AND timemodified <= (unix_timestamp() - (10 * 60))'; return $DB->get_records_sql($sql, ['zoommodulename' => 'zoom', 'zoomeventtype' => 'zoom']); }