Skip to content

Commit d89fd46

Browse files
committed
Ignore null emails when checking for uniqueness
1 parent 50bea2f commit d89fd46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/src/models/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class User extends BaseSqlModel {
3030
],
3131
validators: [
3232
{
33-
resolver: uniqueFieldValue('user', 'email', undefined, true),
33+
resolver: uniqueFieldValue('user', 'email'),
3434
code: ValidatorErrorCode.PROFILE_EMAIL_ALREADY_TAKEN,
3535
},
3636
{

0 commit comments

Comments
 (0)