mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add notification plugin hook
This commit is contained in:
parent
0260dc8aca
commit
785f1897a4
23 changed files with 61 additions and 43 deletions
|
@ -30,8 +30,8 @@ export class NewPeerTubeVersionForAdmins extends AbstractNotification <NewPeerTu
|
|||
return this.admins
|
||||
}
|
||||
|
||||
async createNotification (user: MUserWithNotificationSetting) {
|
||||
const notification = await UserNotificationModel.create<UserNotificationModelForApi>({
|
||||
createNotification (user: MUserWithNotificationSetting) {
|
||||
const notification = UserNotificationModel.build<UserNotificationModelForApi>({
|
||||
type: UserNotificationType.NEW_PEERTUBE_VERSION,
|
||||
userId: user.id,
|
||||
applicationId: this.payload.application.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue