Skip to content

Commit 4e0bf89

Browse files
committed
fix: assign email
1 parent ea6cd97 commit 4e0bf89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/copilotOpportunity/assign.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ module.exports = [
169169
}, req.log);
170170

171171
req.log.debug(`Email sent`);
172-
173-
// Send email to all applicants about opportunity completion
174-
await sendEmailToAllApplicants(opportunity, copilotRequest, application.id);
175172
};
176173

177174
const existingMember = activeMembers.find(item => item.userId === userId);
@@ -265,6 +262,9 @@ module.exports = [
265262

266263
await sendEmailToCopilot();
267264

265+
// Send email to all applicants about opportunity completion
266+
await sendEmailToAllApplicants(opportunity, copilotRequest, application.id);
267+
268268
// Cancel other applications
269269
const otherApplications = await models.CopilotApplication.findAll({
270270
where: {

0 commit comments

Comments
 (0)