- async createNotification (user: MUserWithNotificationSetting) {
- const notification = await UserNotificationModel.create<UserNotificationModelForApi>({
+ createNotification (user: MUserWithNotificationSetting) {
+ const notification = UserNotificationModel.build<UserNotificationModelForApi>({
type: UserNotificationType.COMMENT_MENTION,
userId: user.id,
commentId: this.payload.id
})
type: UserNotificationType.COMMENT_MENTION,
userId: user.id,
commentId: this.payload.id
})