From 07892cac794a8b6ce6d977382253e619cd680c9b Mon Sep 17 00:00:00 2001 From: kkatusic Date: Thu, 28 Nov 2024 11:12:17 +0100 Subject: [PATCH] fixed email value --- src/repositories/projectVerificationRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/projectVerificationRepository.ts b/src/repositories/projectVerificationRepository.ts index fa541fa4b..ef7a8422c 100644 --- a/src/repositories/projectVerificationRepository.ts +++ b/src/repositories/projectVerificationRepository.ts @@ -28,7 +28,7 @@ export const createProjectVerificationForm = async (params: { project, user, // This has been added becasue we are now doing verification of the email on user profile - email: user?.email || '', + email: user?.email ?? '', emailConfirmed: true, emailConfirmedAt: new Date(), } as ProjectVerificationForm).save();