File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/routes/copilotOpportunity Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments