Skip to content

Commit 4186102

Browse files
authored
Merge pull request #146 from topcoder-platform/bypass-zapier
Bypass zapier
2 parents 8b6532e + 3f203a8 commit 4186102

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ workflows:
8181
branches:
8282
only:
8383
- dev
84+
- bypass-zapier
8485

8586
- "build-qa":
8687
context : org-global

src/services/RCRMService.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function createJob(job) {
1717
if (job.duration) {
1818
custom_fields.push({
1919
field_id: config.RCRM.CREATE_JOB_FIELD_DURATION,
20-
value: job.duration
20+
value: `${job.duration}`
2121
})
2222
}
2323

@@ -39,6 +39,7 @@ async function createJob(job) {
3939
const rsp = await request
4040
.post(`${config.RCRM.API_BASE}/jobs`)
4141
.set('Authorization', `Bearer ${config.RCRM.API_KEY}`)
42+
.set('accept', 'json')
4243
.send({
4344
name: job.title,
4445
number_of_openings: job.numPositions,
@@ -50,9 +51,9 @@ async function createJob(job) {
5051
enable_job_application_form: 0
5152
})
5253

53-
localLogger.debug({ context: 'createJob', message: JSON.stringify(rsp) });
54+
localLogger.debug({ context: 'createJob', message: JSON.stringify(rsp) })
5455
} catch (error) {
55-
localLogger.debug({ context: 'createJob error', message: error.message || error.toString() })
56+
console.error('createJob error', error)
5657
}
5758
}
5859

0 commit comments

Comments
 (0)