File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -275,5 +275,7 @@ module.exports = {
275
275
RESOURCE_BOOKING_EXPIRY_TIME : process . env . RESOURCE_BOOKING_EXPIRY_TIME || 'P21D' ,
276
276
// The Stripe
277
277
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'
279
281
}
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ async function sendJobCandidateSelectedNotification (payload) {
154
154
const template = helper . getEmailTemplatesForKey ( 'notificationEmailTemplates' ) [ 'taas.notification.job-candidate-selected' ]
155
155
const project = await helper . getProjectById ( { isMachine : true } , job . projectId )
156
156
const jobUrl = `${ config . TAAS_APP_URL } /${ project . id } /positions/${ job . id } `
157
+ const rcrmJobUrl = `${ config . RCRM_APP_URL } /job/${ job . externalId } `
157
158
const teamUrl = `${ config . TAAS_APP_URL } /${ project . id } `
158
159
const data = {
159
160
subject : template . subject ,
@@ -164,6 +165,7 @@ async function sendJobCandidateSelectedNotification (payload) {
164
165
jobStartDate : helper . formatDateEDT ( job . startDate ) ,
165
166
userHandle : user . handle ,
166
167
jobUrl,
168
+ rcrmJobUrl,
167
169
notificationType : {
168
170
candidateSelected : true
169
171
} ,
@@ -201,7 +203,7 @@ async function sendJobCandidateSelectedNotification (payload) {
201
203
type : 'mrkdwn' ,
202
204
text : [
203
205
`*Team Name*: <${ teamUrl } |${ project . name } >` ,
204
- `*Job Title*: <${ jobUrl } |${ job . title } >` ,
206
+ `*Job Title*: <${ jobUrl } |${ job . title } > (< ${ rcrmJobUrl } |Open in RCRM>) ` ,
205
207
`*Job Start Date*: ${ helper . formatDateEDT ( job . startDate ) } ` ,
206
208
`*Job Duration*: ${ job . duration } ` ,
207
209
`*Job Candidate*: ${ user . handle } `
You can’t perform that action at this time.
0 commit comments