Send email notifications when a participation is approved/rejected
Also handles participant status :rejected instead of deleting the participation Closes #164 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -30,6 +30,7 @@ export enum EventVisibilityJoinOptions {
|
||||
|
||||
export enum ParticipantRole {
|
||||
NOT_APPROVED = 'NOT_APPROVED',
|
||||
REJECTED = 'REJECTED',
|
||||
PARTICIPANT = 'PARTICIPANT',
|
||||
MODERATOR = 'MODERATOR',
|
||||
ADMINISTRATOR = 'ADMINISTRATOR',
|
||||
@@ -112,6 +113,7 @@ export interface IEvent {
|
||||
participantStats: {
|
||||
approved: number;
|
||||
unapproved: number;
|
||||
rejected: number;
|
||||
};
|
||||
participants: IParticipant[];
|
||||
|
||||
@@ -175,7 +177,7 @@ export class EventModel implements IEvent {
|
||||
|
||||
publishAt = new Date();
|
||||
|
||||
participantStats = { approved: 0, unapproved: 0 };
|
||||
participantStats = { approved: 0, unapproved: 0, rejected: 0 };
|
||||
participants: IParticipant[] = [];
|
||||
|
||||
relatedEvents: IEvent[] = [];
|
||||
|
||||
Reference in New Issue
Block a user