Skip to content

Commit 8dab6fa

Browse files
committed
added RCRM job link in candidate selected slack notification
1 parent a09dc53 commit 8dab6fa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/default.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,7 @@ module.exports = {
275275
RESOURCE_BOOKING_EXPIRY_TIME: process.env.RESOURCE_BOOKING_EXPIRY_TIME || 'P21D',
276276
// The Stripe
277277
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
278-
CURRENCY: process.env.CURRENCY || 'usd'
278+
CURRENCY: process.env.CURRENCY || 'usd',
279+
// RCRM base URL
280+
RCRM_APP_URL: process.env.RCRM_APP_URL || 'https://app.recruitcrm.io'
279281
}

src/eventHandlers/JobCandidateEventHandler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ async function sendJobCandidateSelectedNotification (payload) {
154154
const template = helper.getEmailTemplatesForKey('notificationEmailTemplates')['taas.notification.job-candidate-selected']
155155
const project = await helper.getProjectById({ isMachine: true }, job.projectId)
156156
const jobUrl = `${config.TAAS_APP_URL}/${project.id}/positions/${job.id}`
157+
const rcrmJobUrl = `${config.RCRM_APP_URL}/job/${job.externalId}`
157158
const teamUrl = `${config.TAAS_APP_URL}/${project.id}`
158159
const data = {
159160
subject: template.subject,
@@ -164,6 +165,7 @@ async function sendJobCandidateSelectedNotification (payload) {
164165
jobStartDate: helper.formatDateEDT(job.startDate),
165166
userHandle: user.handle,
166167
jobUrl,
168+
rcrmJobUrl,
167169
notificationType: {
168170
candidateSelected: true
169171
},
@@ -201,7 +203,7 @@ async function sendJobCandidateSelectedNotification (payload) {
201203
type: 'mrkdwn',
202204
text: [
203205
`*Team Name*: <${teamUrl}|${project.name}>`,
204-
`*Job Title*: <${jobUrl}|${job.title}>`,
206+
`*Job Title*: <${jobUrl}|${job.title}> (<${rcrmJobUrl}|Open in RCRM>)`,
205207
`*Job Start Date*: ${helper.formatDateEDT(job.startDate)}`,
206208
`*Job Duration*: ${job.duration}`,
207209
`*Job Candidate*: ${user.handle}`

0 commit comments

Comments
 (0)