diff options
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 3fd359359..a2c2497fd 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -1,4 +1,3 @@ | |||
1 | import { values } from 'lodash' | ||
2 | import { col, FindOptions, fn, literal, Op, QueryTypes, where, WhereOptions } from 'sequelize' | 1 | import { col, FindOptions, fn, literal, Op, QueryTypes, where, WhereOptions } from 'sequelize' |
3 | import { | 2 | import { |
4 | AfterDestroy, | 3 | AfterDestroy, |
@@ -283,7 +282,7 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
283 | 282 | ||
284 | @AllowNull(false) | 283 | @AllowNull(false) |
285 | @Is('UserNSFWPolicy', value => throwIfNotValid(value, isUserNSFWPolicyValid, 'NSFW policy')) | 284 | @Is('UserNSFWPolicy', value => throwIfNotValid(value, isUserNSFWPolicyValid, 'NSFW policy')) |
286 | @Column(DataType.ENUM(...values(NSFW_POLICY_TYPES))) | 285 | @Column(DataType.ENUM(...Object.values(NSFW_POLICY_TYPES))) |
287 | nsfwPolicy: NSFWPolicyType | 286 | nsfwPolicy: NSFWPolicyType |
288 | 287 | ||
289 | @AllowNull(false) | 288 | @AllowNull(false) |