From 50c98da8589f72ac7ca6dc7abea3b5a056d483fd Mon Sep 17 00:00:00 2001 From: Mazarin Date: Thu, 12 Jan 2023 14:49:18 -0500 Subject: [PATCH] fix: fix cron again (monicahq/chandler#403) --- .../Services/RescheduleContactReminderForChannel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Domains/Contact/ManageReminders/Services/RescheduleContactReminderForChannel.php b/app/Domains/Contact/ManageReminders/Services/RescheduleContactReminderForChannel.php index feabaf2c809..4112b1a2202 100644 --- a/app/Domains/Contact/ManageReminders/Services/RescheduleContactReminderForChannel.php +++ b/app/Domains/Contact/ManageReminders/Services/RescheduleContactReminderForChannel.php @@ -58,7 +58,9 @@ public function execute(array $data): void if ($this->contactReminder->type !== ContactReminder::TYPE_ONE_TIME) { $this->schedule(); } else { - $this->contactReminder->delete(); + DB::table('contact_reminder_scheduled') + ->where('id', $this->data['contact_reminder_scheduled_id']) + ->delete(); } }