diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-03 11:33:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-03 11:33:43 +0200 |
commit | 785f1897a42984ece9c6f65829d195d67e331d95 (patch) | |
tree | 1cb3b33cfc797b8f1abbab90749c1e3187bbd311 /server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts | |
parent | 0260dc8aca952f9412a8620e433b9e16e675696e (diff) | |
download | PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.gz PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.tar.zst PeerTube-785f1897a42984ece9c6f65829d195d67e331d95.zip |
Add notification plugin hook
Diffstat (limited to 'server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts')
-rw-r--r-- | server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts b/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts index 6b5ac808a..f5646c666 100644 --- a/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts +++ b/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts | |||
@@ -30,8 +30,8 @@ export class NewPeerTubeVersionForAdmins extends AbstractNotification <NewPeerTu | |||
30 | return this.admins | 30 | return this.admins |
31 | } | 31 | } |
32 | 32 | ||
33 | async createNotification (user: MUserWithNotificationSetting) { | 33 | createNotification (user: MUserWithNotificationSetting) { |
34 | const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ | 34 | const notification = UserNotificationModel.build<UserNotificationModelForApi>({ |
35 | type: UserNotificationType.NEW_PEERTUBE_VERSION, | 35 | type: UserNotificationType.NEW_PEERTUBE_VERSION, |
36 | userId: user.id, | 36 | userId: user.id, |
37 | applicationId: this.payload.application.id | 37 | applicationId: this.payload.application.id |