Skip to content

Commit 5a4c59d

Browse files
committed
Adding find by Job Candidate Id
1 parent 865533f commit 5a4c59d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/eventHandlers/InterviewEventHandler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const teamService = require('../services/TeamService')
1515
*/
1616
async function sendInvitationEmail (payload) {
1717
const interview = payload.value
18-
// get customer details
18+
// get customer details via job candidate user
19+
const jobCandidate = await models.JobCandidate.findById(interview.jobCandidateId)
1920
const job = await jobCandidate.getJob()
2021
teamService.sendEmail({}, {
2122
template: 'interview-invitation',

0 commit comments

Comments
 (0)