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

Commit a156577

Browse files
author
sachin-maheshwari
authored
Merge pull request #17 from topcoder-platform/develop
Hotfix 03 March2021 : shapeup pure v5 task
2 parents 1d59b9f + 6017ef6 commit a156577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function isUuid (id) {
108108
async function getPhaseName (challengeUuid, phaseId) {
109109
const token = await getM2MToken()
110110
const res = await axios.get(`${config.V5_CHALLENGE_API_URL}/${challengeUuid}`, { headers: { Authorization: `Bearer ${token}` } })
111-
return _.get(_.find(_.get(res, 'data.phases', []), ['id', phaseId]), 'name')
111+
return _.get(_.find(_.get(res, 'data.phases', []), ['phaseId', phaseId]), 'name')
112112
}
113113

114114
module.exports = {

0 commit comments

Comments
 (0)