-
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/create-booking.provider.tsbackend/src/email/email.service.tsbackend/src/email/templates/booking-created.hbs
Description
When a member successfully creates a booking, they should receive an email confirmation with all the relevant details. The EmailModule is already set up in the project and is globally available — no new module imports are needed. The email should fire asynchronously after the booking is saved so it never blocks the HTTP response.
Acceptance Criteria
- A Handlebars template is created at
backend/src/email/templates/booking-created.hbswith a clean layout displaying:- Member's full name
- Booking ID
- Workspace name
- Plan type (Hourly / Daily / Monthly)
- Start date and end date (human-readable format)
- Number of seats
- Total amount in Naira (converted from kobo)
- A
sendBookingCreatedEmail(to: string, fullName: string, data: {...})method is added toEmailServicethat uses the template above -
EmailServiceis injected into the create booking provider - After the booking is saved, the email is fired with
.catch(() => void 0)so failures are silent and non-blocking - The
Userentity is loaded (or its data extracted) within the create booking provider to obtain the member's email and full name -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers