Skip to content

Commit e49d4cc

Browse files
fix issue with fetching member data
1 parent 29f214c commit e49d4cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ async function getMemberInfoById (id) {
162162
* @returns {Promise<void>}
163163
*/
164164
async function getMemberById (id) {
165-
const res = await getRequest(`${config.MEMBER_API_URL}?userId=${id}`)
165+
const res = await getRequest(`${config.MEMBER_API_URL}`, { userId: id })
166+
console.log(res.data)
166167
return _.get(res, 'data[0]')
167168
}
168169

0 commit comments

Comments
 (0)