Skip to content

Commit

Permalink
send email when project verification status changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Nov 4, 2024
1 parent 52cfb82 commit b3dfb59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/server/adminJs/tabs/projectsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit b3dfb59

Please sign in to comment.