From b3dfb594bee67afabc6e697aa4343454c680cef5 Mon Sep 17 00:00:00 2001 From: Cherik Date: Mon, 4 Nov 2024 10:48:17 +0330 Subject: [PATCH] send email when project verification status changed --- src/server/adminJs/tabs/projectsTab.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/server/adminJs/tabs/projectsTab.ts b/src/server/adminJs/tabs/projectsTab.ts index e183826ef..c46aeab75 100644 --- a/src/server/adminJs/tabs/projectsTab.ts +++ b/src/server/adminJs/tabs/projectsTab.ts @@ -238,6 +238,15 @@ export const verifyProjects = async ( ? HISTORY_DESCRIPTIONS.CHANGED_TO_VERIFIED : HISTORY_DESCRIPTIONS.CHANGED_TO_UNVERIFIED, }); + if (vouchedStatus) { + await getNotificationAdapter().projectVerified({ + project: project, + }); + } else { + await getNotificationAdapter().projectUnVerified({ + project: project, + }); + } } await Promise.all([