Skip to content

Send notification when attendee is removed from event #394

@tompscanlan

Description

@tompscanlan

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

  • Email sent when user removed
  • In-app notification created
  • Clear message with event details
  • No error if user already removed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions