fix: confirmed bookings auto-set reminder_status to 'coming'

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.
This commit is contained in:
2026-03-24 17:55:46 +03:00
parent aa07b64c80
commit a959c22a4c

View File

@@ -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(