From a959c22a4c4b31380d182d6b6976b740433ba4aa Mon Sep 17 00:00:00 2001 From: "diana.dolgolyova" Date: Tue, 24 Mar 2026 17:55:46 +0300 Subject: [PATCH] fix: confirmed bookings auto-set reminder_status to 'coming' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a group booking is confirmed with a date, the reminder status is automatically set to 'coming' — no need to manually mark it again in the Reminders tab. --- src/lib/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/db.ts b/src/lib/db.ts index 016abfc..e745fd6 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -727,7 +727,7 @@ export function setGroupBookingStatus( const db = getDb(); if (status === "confirmed" && confirmation) { db.prepare( - "UPDATE group_bookings SET status = ?, confirmed_date = ?, confirmed_group = ?, confirmed_comment = ?, notified_confirm = 1 WHERE id = ?" + "UPDATE group_bookings SET status = ?, confirmed_date = ?, confirmed_group = ?, confirmed_comment = ?, notified_confirm = 1, reminder_status = 'coming' WHERE id = ?" ).run(status, confirmation.date, confirmation.group, confirmation.comment || null, id); } else { db.prepare(