diff --git a/src/service/EventService.ts b/src/service/EventService.ts index 08a94d4..d053beb 100644 --- a/src/service/EventService.ts +++ b/src/service/EventService.ts @@ -15,7 +15,14 @@ type ModifyEventParams = { class EventService { async makeEvent(body: ModifyEventParams): Promise { - return await Event.create(body).save(); + const {user} = body; + const event = await Event.create(body).save(); + + if (user.shallThisUserBeNotifiedWithThisEvent(event)) { + // TODO 알림서비스 호출 + } + + return event; } async getEvent(eventId: number): Promise {