aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts
diff options
context:
space:
mode:
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.ts4
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