aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-03 11:33:43 +0200
committerChocobozzz <me@florianbigard.com>2022-08-03 11:33:43 +0200
commit785f1897a42984ece9c6f65829d195d67e331d95 (patch)
tree1cb3b33cfc797b8f1abbab90749c1e3187bbd311 /server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts
parent0260dc8aca952f9412a8620e433b9e16e675696e (diff)
downloadPeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.gz
PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.zst
PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.zip
Add notification plugin hook
Diffstat (limited to 'server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts')
-rw-r--r--server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts b/server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts
index 45bc30eb2..342b69ec7 100644
--- a/server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts
+++ b/server/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts
@@ -28,8 +28,8 @@ export class NewBlacklistForOwner extends AbstractNotification <MVideoBlacklistV
28 return [ this.user ] 28 return [ this.user ]
29 } 29 }
30 30
31 async createNotification (user: MUserWithNotificationSetting) { 31 createNotification (user: MUserWithNotificationSetting) {
32 const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ 32 const notification = UserNotificationModel.build<UserNotificationModelForApi>({
33 type: UserNotificationType.BLACKLIST_ON_MY_VIDEO, 33 type: UserNotificationType.BLACKLIST_ON_MY_VIDEO,
34 userId: user.id, 34 userId: user.id,
35 videoBlacklistId: this.payload.id 35 videoBlacklistId: this.payload.id