From c0bf7cd8719e94718b267e53e625e6ab123ebe69 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 3c49d37eef..a4193925f6 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<{