mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 05:26:11 +00:00
Update secret-approval-request-fns.ts
This commit is contained in:
@@ -28,21 +28,19 @@ export const sendApprovalEmailsFn = async ({
|
|||||||
|
|
||||||
// now we need to go through each of the reviewers and print out all the commits that they need to approve
|
// now we need to go through each of the reviewers and print out all the commits that they need to approve
|
||||||
for await (const reviewerUser of policy.userApprovers) {
|
for await (const reviewerUser of policy.userApprovers) {
|
||||||
if (reviewerUser) {
|
await smtpService.sendMail({
|
||||||
await smtpService.sendMail({
|
recipients: [reviewerUser?.email as string],
|
||||||
recipients: [reviewerUser?.email as string],
|
subjectLine: "Infisical Secret Change Request",
|
||||||
subjectLine: "Infisical Secret Change Request",
|
|
||||||
|
|
||||||
substitutions: {
|
substitutions: {
|
||||||
firstName: reviewerUser.firstName,
|
firstName: reviewerUser.firstName,
|
||||||
projectName: project.name,
|
projectName: project.name,
|
||||||
organizationName: project.organization.name,
|
organizationName: project.organization.name,
|
||||||
approvalUrl: `${cfg.isDevelopmentMode ? "https" : "http"}://${cfg.SITE_URL}/project/${
|
approvalUrl: `${cfg.isDevelopmentMode ? "https" : "http"}://${cfg.SITE_URL}/project/${
|
||||||
project.id
|
project.id
|
||||||
}/approval?requestId=${secretApprovalRequest.id}`
|
}/approval?requestId=${secretApprovalRequest.id}`
|
||||||
},
|
},
|
||||||
template: SmtpTemplates.SecretApprovalRequestNeedsReview
|
template: SmtpTemplates.SecretApprovalRequestNeedsReview
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user