Skip to content

Commit 31cb42a

Browse files
fix issue with fetching member data
1 parent e49d4cc commit 31cb42a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ async function getMemberInfoById (id) {
163163
*/
164164
async function getMemberById (id) {
165165
const res = await getRequest(`${config.MEMBER_API_URL}`, { userId: id })
166-
console.log(res.data)
167-
return _.get(res, 'data[0]')
166+
return _.get(res, 'body[0]')
168167
}
169168

170169
/**

0 commit comments

Comments
 (0)