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

Prod release - Calling new skills api #7

Merged
merged 9 commits into from
Aug 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated method and env names to reflect non ubahn api
  • Loading branch information
vikasrohit authored Aug 18, 2021
commit 55e975b6edad9b29072c5ebefb79a51427e05bb6
8 changes: 4 additions & 4 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ const getM2MUbahnToken = async () => {
}

/**
* Get the u-bahn record
* Get the V5 Skill/Taxonomy record
* @param {String} path the resource path
* @param {String} params the query params
* @returns {Object} the u-bahn user
*/
async function getUbahnResource (path, params) {
async function getV5SkillResource (path, params) {
const token = await getM2MUbahnToken()
const res = await axios.get(`${config.UBAHN_API_URL}/${path}`, {
const res = await axios.get(`${config.TC_BETA_API}/${path}`, {
params,
headers: { Authorization: `Bearer ${token}` }
})
Expand Down Expand Up @@ -131,7 +131,7 @@ module.exports = {
sleep,
getM2MToken,
getM2MUbahnToken,
getUbahnResource,
getV5SkillResource,
deleteUserSkill,
updateUserSkill,
createUserSkill,
Expand Down