fix email validation

This commit is contained in:
s1idewhist1e 2023-04-30 22:50:43 -07:00
parent f0dc329296
commit b1bbc3ac8e

View file

@ -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;