Problem
Users are not notified when a host removes them from an event, creating confusion.
Solution
Send email and in-app notification when attendee is removed.
Implementation
Location: src/event-attendee/event-attendee.service.ts
async remove(eventId: number, attendeeId: number) {
const attendee = await this.findOne(attendeeId);
const event = await this.eventService.findOne(eventId);
await this.eventAttendeeRepository.delete(attendeeId);
// Send notification
await this.notificationService.sendRemovedFromEvent(
attendee.userId,
event
);
}
Email Template: Create templates/event-attendee-removed.mjml
Subject: Update about [Event Name]
Hi [User Name],
The host has updated the attendee list for [Event Name]
and you are no longer registered.
If you have questions, please contact the host.
Event: [Event Name]
Date: [Event Date]
Host: [Host Name]
Files to Create/Modify
- MJML template:
templates/event-attendee-removed.mjml
- Notification service method
Acceptance Criteria
Problem
Users are not notified when a host removes them from an event, creating confusion.
Solution
Send email and in-app notification when attendee is removed.
Implementation
Location:
src/event-attendee/event-attendee.service.tsEmail Template: Create
templates/event-attendee-removed.mjmlFiles to Create/Modify
templates/event-attendee-removed.mjmlAcceptance Criteria