Skip to content

Commit 1517cb1

Browse files
committed
return skills instead of skillids for GET /taas-teams/:id/jobs/:jobId
1 parent e192960 commit 1517cb1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/services/TeamService.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,13 @@ async function getTeamJob (currentUser, id, jobId) {
233233
}
234234
const result = {
235235
id: job.id,
236-
description: job.description,
237-
skills: job.skills
236+
description: job.description
237+
}
238+
239+
if (job.skills) {
240+
result.skills = await Promise.all(
241+
_.map(job.skills, (skillId) => helper.getSkillById(currentUser.jwtToken, skillId))
242+
)
238243
}
239244

240245
const jobSkills = job.skills

0 commit comments

Comments
 (0)