Skip to content

Commit 1e37e81

Browse files
author
Aranyajit
committed
remove m2m token for get skills endpoint
1 parent 47c1265 commit 1e37e81

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/common/helper.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,16 +1157,10 @@ async function getStandSkills(ids) {
11571157
queryBatches.push(queryString);
11581158

11591159
const skillDataPromises = [];
1160-
const token = await m2mHelper.getM2MToken();
11611160
for (const batch of queryBatches) {
11621161
skillDataPromises.push(
11631162
(async () => {
1164-
const res = await axios.get(
1165-
`${config.API_BASE_URL}/v5/standardized-skills/skills?${batch}`,
1166-
{
1167-
headers: { Authorization: `Bearer ${token}` },
1168-
}
1169-
);
1163+
const res = await axios.get(`${config.API_BASE_URL}/v5/standardized-skills/skills?${batch}`);
11701164
return res.data;
11711165
})()
11721166
);

0 commit comments

Comments
 (0)