Skip to content

Commit f41aff2

Browse files
committed
CORE-88 fix taas API calls to patch jobs
1 parent b4eef06 commit f41aff2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/RCRMService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const config = require('config')
22
const request = require('superagent')
33
const logger = require('../common/logger')
4+
const helper = require('../common/helper')
45

56
const localLogger = {
67
debug: ({ context, message }) => logger.debug({ component: 'JobProcessorService', context, message })
@@ -56,7 +57,7 @@ async function createJob(job) {
5657
// set the external id to taas via API with M2M token
5758
const token = await helper.getM2MToken()
5859
const taasRsp = await request
59-
.post(`${config.TAAS_API_URL}/jobs`)
60+
.patch(`${config.TAAS_API_URL}/jobs`)
6061
.set('Authorization', `Bearer ${token}`)
6162
.set('accept', 'json')
6263
.send({

0 commit comments

Comments
 (0)