Fix typo in db field check

pull/2315/head
Chocobozzz 2020-04-03 14:08:27 +02:00
parent a2b6ec7c3f
commit 51892fe042
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ export class UserModel extends Model<UserModel> {
password: string
@AllowNull(false)
@Is('UserPassword', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
@Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
@Column
username: string