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

Commit 6017ef6

Browse files
author
Sachin Maheshwari
committed
phase id logic change
1 parent 913e621 commit 6017ef6

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)