Fix typo in db field check
This commit is contained in:
parent
a2b6ec7c3f
commit
51892fe042
|
@ -233,7 +233,7 @@ export class UserModel extends Model<UserModel> {
|
||||||
password: string
|
password: string
|
||||||
|
|
||||||
@AllowNull(false)
|
@AllowNull(false)
|
||||||
@Is('UserPassword', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
|
@Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
|
||||||
@Column
|
@Column
|
||||||
username: string
|
username: string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue