aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts')
-rw-r--r--server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts b/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts
index a7292de69..1dc1ccfc2 100644
--- a/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts
+++ b/server/lib/notifier/shared/abuse/abstract-new-abuse-message.ts
@@ -21,8 +21,8 @@ export abstract class AbstractNewAbuseMessage extends AbstractNotification <NewA
21 return user.NotificationSetting.abuseNewMessage 21 return user.NotificationSetting.abuseNewMessage
22 } 22 }
23 23
24 async createNotification (user: MUserWithNotificationSetting) { 24 createNotification (user: MUserWithNotificationSetting) {
25 const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ 25 const notification = UserNotificationModel.build<UserNotificationModelForApi>({
26 type: UserNotificationType.ABUSE_NEW_MESSAGE, 26 type: UserNotificationType.ABUSE_NEW_MESSAGE,
27 userId: user.id, 27 userId: user.id,
28 abuseId: this.abuse.id 28 abuseId: this.abuse.id