From a04f6d7a7067eb8c646328f8ccfaacc965ca34f6 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Mon, 20 Nov 2023 15:44:56 +1100 Subject: [PATCH] Update to use new job-skills endpoint --- src/common/helper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/helper.js b/src/common/helper.js index fc4609cb..26833f95 100644 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -2139,8 +2139,6 @@ async function getMembersSuggest (fragment) { async function registerSkills (job) { const token = await getM2MToken() const body = { - workId: job.id, - workTypeId: config.STANDARDIZED_SKILL_WORK_TYPE_ID, skillIds: job.skills } localLogger.debug({ @@ -2148,7 +2146,7 @@ async function registerSkills (job) { message: `request: ${JSON.stringify(body)}` }) const res = await request - .post(`${config.TC_API}/standardized-skills/work-skills`) + .post(`${config.TC_API}/standardized-skills/job-skills/${job.id}`) .set('Authorization', `Bearer ${token}`) .set('Content-Type', 'application/json') .set('Accept', 'application/json')