Skip to content

Commit 12de6fd

Browse files
authored
Fix issue with resources API
1 parent 04c3a64 commit 12de6fd

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

0 commit comments

Comments
 (0)