Skip to content

Commit 1ee0442

Browse files
author
Vikas Agarwal
committed
fix: issue with /me endpoint, we don’t need any change in the listUsersByExternalId method as we don’t need skills back there.
1 parent 1ab03a3 commit 1ee0442

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/common/helper.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -951,14 +951,7 @@ async function listUsersByExternalId (externalId) {
951951
message: `response body: ${JSON.stringify(res.body)}`
952952
})
953953

954-
const users = res.body
955-
// populate skill data for each user skill
956-
await Promise.all(users.map(user => Promise.all(user.skills.map(async userSkill => {
957-
const skill = await getSkillById(userSkill.skillId)
958-
userSkill.skill = skill
959-
}))))
960-
961-
return users
954+
return res.body
962955
}
963956

964957
/**

0 commit comments

Comments
 (0)