Skip to content

Commit c6802cf

Browse files
Merge pull request #5748 from topcoder-platform/develop
Release v1.13.6
2 parents 37e8a94 + b44919e commit c6802cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ workflows:
357357
filters:
358358
branches:
359359
only:
360-
- free
360+
- referral-api-bug
361361
# This is beta env for production soft releases
362362
- "build-prod-beta":
363363
context : org-global

src/server/services/recruitCRM.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,20 +385,20 @@ export default class RecruitCRMService {
385385
// candidate exists in growsurf
386386
// update candidate to set referrer only if it is not set already
387387
if (!existRes.referrer) {
388-
growRes = await gs.updateParticipant(form.email, JSON.stringify({
388+
growRes = await gs.updateParticipant(form.email, {
389389
referredBy: referralCookie.referralId,
390390
referralStatus: 'CREDIT_PENDING',
391391
metadata: {
392392
gigID: id,
393393
},
394-
}));
394+
});
395395
// add referral link to candidate profile in recruitCRM
396396
if (!growRes.error) {
397397
isReferred = true;
398398
form.custom_fields.push({
399399
field_id: 6, value: `https://app.growsurf.com/dashboard/campaign/${config.GROWSURF_CAMPAIGN_ID}/participant/${growRes.id}`,
400400
});
401-
}
401+
} else notifyKirilAndNick(growRes);
402402
}
403403
} else {
404404
growRes = await gs.addParticipant(JSON.stringify({
@@ -418,7 +418,7 @@ export default class RecruitCRMService {
418418
form.custom_fields.push({
419419
field_id: 6, value: `https://app.growsurf.com/dashboard/campaign/${config.GROWSURF_CAMPAIGN_ID}/participant/${growRes.id}`,
420420
});
421-
}
421+
} else notifyKirilAndNick(growRes);
422422
}
423423
// finally, clear the cookie
424424
res.cookie(config.GROWSURF_COOKIE, '', {

0 commit comments

Comments
 (0)