1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add video edition finished notification

This commit is contained in:
Chocobozzz 2022-03-22 14:35:04 +01:00
parent 348c2ce3ff
commit 1808a1f8e4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
30 changed files with 336 additions and 70 deletions

View file

@ -175,6 +175,15 @@ export class UserNotificationSettingModel extends Model<Partial<AttributesOnly<U
@Column
newPluginVersion: UserNotificationSettingValue
@AllowNull(false)
@Default(null)
@Is(
'UserNotificationSettingMyVideoEditionFinished',
value => throwIfNotValid(value, isUserNotificationSettingValid, 'myVideoEditionFinished')
)
@Column
myVideoEditionFinished: UserNotificationSettingValue
@ForeignKey(() => UserModel)
@Column
userId: number
@ -216,6 +225,7 @@ export class UserNotificationSettingModel extends Model<Partial<AttributesOnly<U
abuseNewMessage: this.abuseNewMessage,
abuseStateChange: this.abuseStateChange,
newPeerTubeVersion: this.newPeerTubeVersion,
myVideoEditionFinished: this.myVideoEditionFinished,
newPluginVersion: this.newPluginVersion
}
}