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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user