-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Location:
backend/src/bookings/providers/cancel-booking.provider.tsbackend/src/email/email.service.tsbackend/src/email/templates/booking-cancelled.hbs
Description
When a booking is cancelled — whether by the member themselves or by an admin — the member should receive an email notifying them of the cancellation. The email should indicate who initiated the cancellation so the member has full context.
Acceptance Criteria
- A Handlebars template is created at
backend/src/email/templates/booking-cancelled.hbsdisplaying:- Member's full name
- Booking ID
- Workspace name
- Original start date and end date
- Who cancelled the booking (
"you"if self-cancelled,"an administrator"if cancelled by admin)
- A
sendBookingCancelledEmail(to: string, fullName: string, data: {...})method is added toEmailService -
EmailServiceis injected into the cancel booking provider - After the booking status is saved as
CANCELLED, the email is fired with.catch(() => void 0) - The cancel booking provider determines the
cancelledByvalue by comparing the requesting user's ID and role to the booking owner -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers