diff options
Diffstat (limited to 'server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts')
-rw-r--r-- | server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts b/server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts index a92a49a0c..ad2cc00ea 100644 --- a/server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts +++ b/server/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts | |||
@@ -26,8 +26,8 @@ export class NewAutoBlacklistForModerators extends AbstractNotification <MVideoB | |||
26 | return this.moderators | 26 | return this.moderators |
27 | } | 27 | } |
28 | 28 | ||
29 | async createNotification (user: MUserWithNotificationSetting) { | 29 | createNotification (user: MUserWithNotificationSetting) { |
30 | const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ | 30 | const notification = UserNotificationModel.build<UserNotificationModelForApi>({ |
31 | type: UserNotificationType.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS, | 31 | type: UserNotificationType.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS, |
32 | userId: user.id, | 32 | userId: user.id, |
33 | videoBlacklistId: this.payload.id | 33 | videoBlacklistId: this.payload.id |