Skip to content

Commit dd71781

Browse files
Fix route to get member's challenges
1 parent 8859886 commit dd71781

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
@@ -535,7 +535,7 @@ async function ensureProjectExist (projectId, userToken) {
535535
*/
536536
async function listChallengesByMember (memberId) {
537537
const token = await getM2MToken()
538-
const url = `${config.RESOURCES_API_URL}/${memberId}/challenges`
538+
const url = `${config.RESOURCES_API_URL}/resources/${memberId}/challenges`
539539
const res = await axios.get(url, { headers: { Authorization: `Bearer ${token}` } })
540540
return res.data || []
541541
}

0 commit comments

Comments
 (0)