From b73ceaa4d2f6d89e76db430c4d5379a4108fe80a Mon Sep 17 00:00:00 2001 From: dogcraft Date: Mon, 14 Mar 2022 21:57:55 +0800 Subject: [PATCH] Fix: "Adding email to profile ends in error" (#8405) --- packages/backend/src/services/validate-email-for-account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/services/validate-email-for-account.ts b/packages/backend/src/services/validate-email-for-account.ts index 3c49d37ee..a4193925f 100644 --- a/packages/backend/src/services/validate-email-for-account.ts +++ b/packages/backend/src/services/validate-email-for-account.ts @@ -1,4 +1,4 @@ -import validateEmail from 'deep-email-validator'; +import { validate as validateEmail } from 'deep-email-validator'; import { UserProfiles } from '@/models/index.js'; export async function validateEmailForAccount(emailAddress: string): Promise<{