aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/user.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 451e1fd6b..38c6d474a 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -25,6 +25,7 @@ import {
25 isNoInstanceConfigWarningModal, 25 isNoInstanceConfigWarningModal,
26 isUserAdminFlagsValid, 26 isUserAdminFlagsValid,
27 isUserAutoPlayVideoValid, 27 isUserAutoPlayVideoValid,
28 isUserAutoPlayNextVideoValid,
28 isUserBlockedReasonValid, 29 isUserBlockedReasonValid,
29 isUserBlockedValid, 30 isUserBlockedValid,
30 isUserEmailVerifiedValid, 31 isUserEmailVerifiedValid,
@@ -160,6 +161,12 @@ export class UserModel extends Model<UserModel> {
160 @Column 161 @Column
161 autoPlayVideo: boolean 162 autoPlayVideo: boolean
162 163
164 @AllowNull(false)
165 @Default(false)
166 @Is('UserAutoPlayNextVideo', value => throwIfNotValid(value, isUserAutoPlayNextVideoValid, 'auto play next video boolean'))
167 @Column
168 autoPlayNextVideo: boolean
169
163 @AllowNull(true) 170 @AllowNull(true)
164 @Default(null) 171 @Default(null)
165 @Is('UserVideoLanguages', value => throwIfNotValid(value, isUserVideoLanguages, 'video languages')) 172 @Is('UserVideoLanguages', value => throwIfNotValid(value, isUserVideoLanguages, 'video languages'))
@@ -597,6 +604,7 @@ export class UserModel extends Model<UserModel> {
597 webTorrentEnabled: this.webTorrentEnabled, 604 webTorrentEnabled: this.webTorrentEnabled,
598 videosHistoryEnabled: this.videosHistoryEnabled, 605 videosHistoryEnabled: this.videosHistoryEnabled,
599 autoPlayVideo: this.autoPlayVideo, 606 autoPlayVideo: this.autoPlayVideo,
607 autoPlayNextVideo: this.autoPlayNextVideo,
600 videoLanguages: this.videoLanguages, 608 videoLanguages: this.videoLanguages,
601 609
602 role: this.role, 610 role: this.role,