notify everyone if ticket is exactly 60 minutes old

This commit is contained in:
Jon Goldberg 2020-06-11 16:54:17 -04:00
parent efba28f3f4
commit 929f6040f9

View File

@ -17,8 +17,6 @@ if ($table) {
$oncall->sendToMattermost($table); $oncall->sendToMattermost($table);
} }
//email($item, $contact);
/** /**
* The class that does all the magic. * The class that does all the magic.
*/ */
@ -103,7 +101,7 @@ class oncall {
$td_min = (int) ($time_difference / 60); $td_min = (int) ($time_difference / 60);
// Flag if any items are overdue. // Flag if any items are overdue.
if ($td_min > 60) { if ($td_min >= 60) {
$this->everyone = TRUE; $this->everyone = TRUE;
} }
// Notify every 30 minutes. // Notify every 30 minutes.