Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 55e975b

Browse files
author
vikasrohit
authored
Updated method and env names to reflect non ubahn api
1 parent 82ab154 commit 55e975b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ const getM2MUbahnToken = async () => {
4242
}
4343

4444
/**
45-
* Get the u-bahn record
45+
* Get the V5 Skill/Taxonomy record
4646
* @param {String} path the resource path
4747
* @param {String} params the query params
4848
* @returns {Object} the u-bahn user
4949
*/
50-
async function getUbahnResource (path, params) {
50+
async function getV5SkillResource (path, params) {
5151
const token = await getM2MUbahnToken()
52-
const res = await axios.get(`${config.UBAHN_API_URL}/${path}`, {
52+
const res = await axios.get(`${config.TC_BETA_API}/${path}`, {
5353
params,
5454
headers: { Authorization: `Bearer ${token}` }
5555
})
@@ -131,7 +131,7 @@ module.exports = {
131131
sleep,
132132
getM2MToken,
133133
getM2MUbahnToken,
134-
getUbahnResource,
134+
getV5SkillResource,
135135
deleteUserSkill,
136136
updateUserSkill,
137137
createUserSkill,

0 commit comments

Comments
 (0)