File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ workflows:
81
81
branches :
82
82
only :
83
83
- dev
84
+ - bypass-zapier
84
85
85
86
- " build-qa " :
86
87
context : org-global
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async function createJob(job) {
17
17
if ( job . duration ) {
18
18
custom_fields . push ( {
19
19
field_id : config . RCRM . CREATE_JOB_FIELD_DURATION ,
20
- value : job . duration
20
+ value : ` ${ job . duration } `
21
21
} )
22
22
}
23
23
@@ -39,6 +39,7 @@ async function createJob(job) {
39
39
const rsp = await request
40
40
. post ( `${ config . RCRM . API_BASE } /jobs` )
41
41
. set ( 'Authorization' , `Bearer ${ config . RCRM . API_KEY } ` )
42
+ . set ( 'accept' , 'json' )
42
43
. send ( {
43
44
name : job . title ,
44
45
number_of_openings : job . numPositions ,
@@ -50,9 +51,9 @@ async function createJob(job) {
50
51
enable_job_application_form : 0
51
52
} )
52
53
53
- localLogger . debug ( { context : 'createJob' , message : JSON . stringify ( rsp ) } ) ;
54
+ localLogger . debug ( { context : 'createJob' , message : JSON . stringify ( rsp ) } )
54
55
} catch ( error ) {
55
- localLogger . debug ( { context : 'createJob error' , message : error . message || error . toString ( ) } )
56
+ console . error ( 'createJob error' , error )
56
57
}
57
58
}
58
59
You can’t perform that action at this time.
0 commit comments