Skip to content

Commit

Permalink
Move the ical invite buffer back to 10 minutes
Browse files Browse the repository at this point in the history
Move the ical invite buffer back to 10 minutes
  • Loading branch information
paulandm committed Oct 1, 2024
1 parent 708b379 commit 3d39c40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/task/send_ical_notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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']);
}
Expand Down

0 comments on commit 3d39c40

Please sign in to comment.