fix email validation
This commit is contained in:
parent
f0dc329296
commit
b1bbc3ac8e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export default async (ctx: Koa.Context) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const available = await validateEmailForAccount(emailAddress);
|
||||
const { available } = await validateEmailForAccount(emailAddress);
|
||||
if (!available) {
|
||||
ctx.status = 400;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue