Differential D19784 Diff 47250 src/applications/calendar/notifications/PhabricatorCalendarNotificationEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/notifications/PhabricatorCalendarNotificationEngine.php
| Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | private function sendNotifications() { | ||||
| // Mark all the notifications we're about to send as delivered so we | // Mark all the notifications we're about to send as delivered so we | ||||
| // do not double-notify. | // do not double-notify. | ||||
| foreach (PhabricatorLiskDAO::chunkSQL($mark_list) as $chunk) { | foreach (PhabricatorLiskDAO::chunkSQL($mark_list) as $chunk) { | ||||
| queryfx( | queryfx( | ||||
| $conn, | $conn, | ||||
| 'INSERT IGNORE INTO %T | 'INSERT IGNORE INTO %T | ||||
| (eventPHID, targetPHID, utcInitialEpoch, didNotifyEpoch) | (eventPHID, targetPHID, utcInitialEpoch, didNotifyEpoch) | ||||
| VALUES %Q', | VALUES %LQ', | ||||
| $table->getTableName(), | $table->getTableName(), | ||||
| $chunk); | $chunk); | ||||
| } | } | ||||
| foreach ($mail_list as $mail) { | foreach ($mail_list as $mail) { | ||||
| $mail->saveAndSend(); | $mail->saveAndSend(); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||