Skip to content

Commit dfe998e

Browse files
author
Aranyajit
committed
remove auth for get skills endpoint
1 parent 4f4f849 commit dfe998e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/common/helper.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -592,14 +592,12 @@ async function getAllTopcoderSkills (criteria) {
592592
* @returns the request result
593593
*/
594594
async function getSkillById (skillId) {
595-
const token = await getM2MToken()
596595
localLogger.debug({
597596
context: 'getSkillById',
598-
message: `M2M Token: ${token}`
597+
message: `skillId: ${skillId}`
599598
})
600599
const res = await request
601600
.get(`${config.TC_API}/standardized-skills/skills/${skillId}`)
602-
.set('Authorization', `Bearer ${token}`)
603601
.set('Content-Type', 'application/json')
604602
.set('Accept', 'application/json')
605603
localLogger.debug({
@@ -621,16 +619,14 @@ async function getSkillsByExactNames (names) {
621619
return []
622620
}
623621

624-
const token = await getM2MToken()
625622
localLogger.debug({
626623
context: 'getSkillsByNames',
627-
message: `M2M Token: ${token}`
624+
message: `skill names: ${names}`
628625
})
629626

630627
const url = `${config.TC_API}/standardized-skills/skills?${names.map(skill => `name=${encodeURIComponent(skill)}`).join('&')}`
631628
const res = await request
632629
.get(url)
633-
.set('Authorization', `Bearer ${token}`)
634630
.set('Content-Type', 'application/json')
635631
.set('Accept', 'application/json')
636632

0 commit comments

Comments
 (0)