diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-03 14:08:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-03 14:08:27 +0200 |
commit | 51892fe0429e237bff956143630b295aa358f811 (patch) | |
tree | 13237abef4d06dec66710d9d77f40d360676a955 /server/models/account/user.ts | |
parent | a2b6ec7c3f6176ac7028b1f23899ebec3217c8cd (diff) | |
download | PeerTube-51892fe0429e237bff956143630b295aa358f811.tar.gz PeerTube-51892fe0429e237bff956143630b295aa358f811.tar.zst PeerTube-51892fe0429e237bff956143630b295aa358f811.zip |
Fix typo in db field check
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 026bf1318..dec99d90a 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts | |||
@@ -233,7 +233,7 @@ export class UserModel extends Model<UserModel> { | |||
233 | password: string | 233 | password: string |
234 | 234 | ||
235 | @AllowNull(false) | 235 | @AllowNull(false) |
236 | @Is('UserPassword', value => throwIfNotValid(value, isUserUsernameValid, 'user name')) | 236 | @Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name')) |
237 | @Column | 237 | @Column |
238 | username: string | 238 | username: string |
239 | 239 | ||