aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-03 14:08:27 +0200
committerChocobozzz <me@florianbigard.com>2020-04-03 14:08:27 +0200
commit51892fe0429e237bff956143630b295aa358f811 (patch)
tree13237abef4d06dec66710d9d77f40d360676a955 /server/models
parenta2b6ec7c3f6176ac7028b1f23899ebec3217c8cd (diff)
downloadPeerTube-51892fe0429e237bff956143630b295aa358f811.tar.gz
PeerTube-51892fe0429e237bff956143630b295aa358f811.tar.zst
PeerTube-51892fe0429e237bff956143630b295aa358f811.zip
Fix typo in db field check
Diffstat (limited to 'server/models')
-rw-r--r--server/models/account/user.ts2
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