Skip to content

Commit

Permalink
Update to use new job-skills endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Nov 20, 2023
1 parent bd82bb0 commit a04f6d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2139,16 +2139,14 @@ 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({
context: 'registerSkills',
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')
Expand Down

0 comments on commit a04f6d7

Please sign in to comment.