diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/models/account/user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts index fb4c15aef..777f09666 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts | |||
@@ -49,7 +49,7 @@ import { VideoPlaylistModel } from '../video/video-playlist' | |||
49 | import { AccountModel } from './account' | 49 | import { AccountModel } from './account' |
50 | import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' | 50 | import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type' |
51 | import { values } from 'lodash' | 51 | import { values } from 'lodash' |
52 | import { DEFAULT_THEME_NAME, DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' | 52 | import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' |
53 | import { clearCacheByUserId } from '../../lib/oauth-model' | 53 | import { clearCacheByUserId } from '../../lib/oauth-model' |
54 | import { UserNotificationSettingModel } from './user-notification-setting' | 54 | import { UserNotificationSettingModel } from './user-notification-setting' |
55 | import { VideoModel } from '../video/video' | 55 | import { VideoModel } from '../video/video' |
@@ -233,7 +233,7 @@ export class UserModel extends Model<UserModel> { | |||
233 | videoQuotaDaily: number | 233 | videoQuotaDaily: number |
234 | 234 | ||
235 | @AllowNull(false) | 235 | @AllowNull(false) |
236 | @Default(DEFAULT_THEME_NAME) | 236 | @Default(DEFAULT_USER_THEME_NAME) |
237 | @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme')) | 237 | @Is('UserTheme', value => throwIfNotValid(value, isThemeNameValid, 'theme')) |
238 | @Column | 238 | @Column |
239 | theme: string | 239 | theme: string |