| @@ -36,8 +36,11 @@ | ||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | private function pushRemindersToQueue($booking, $reminderTimes, $emailTo) |
| 39 | 39 | { |
| 40 | + // A booking can be scheduled again (e.g. no_show back to scheduled); replace, don't stack. | |
| 41 | + \as_unschedule_all_actions('fluent_booking/booking_schedule_reminder', [$booking->id, $emailTo], 'fluent-booking'); | |
| 42 | + | |
| 40 | 43 | $this->clearGroupRemindersForHost($booking, $emailTo); |
| 41 | 44 | |
| 42 | 45 | foreach ($reminderTimes as $time) { |
| 43 | 46 | $reminderTimestamp = $this->getReminderTime($time); |