Skip to content

Commit ef78279

Browse files
authored
Merge pull request #105 from imcaizheng/taas-teams-job-return-resume-field
return resume instead of resumeLink in `TeamService.getTeamJob`
2 parents b0f61b9 + 49ff24f commit ef78279

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,12 +2298,12 @@ components:
22982298
id:
22992299
type: string
23002300
format: uuid
2301-
description: "The job cadidate id."
2301+
description: "The job candidate id."
23022302
userId:
23032303
type: string
23042304
format: uuid
23052305
description: "User id."
2306-
resumeLink:
2306+
resume:
23072307
type: string
23082308
format: url
23092309
description: 'The link for the resume that can be downloaded'

src/services/TeamService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ async function getTeamJob (currentUser, id, jobId) {
267267
const members = await helper.getMembers(userHandles)
268268

269269
for (const item of candidates) {
270-
item.resumeLink = null
271270
const candidate = _.find(job.candidates, { userId: item.id })
272271
// TODO this logic should be vice-verse, we should loop trough candidates and populate users data if found,
273272
// not loop through users and populate candidates data if found
274273
if (candidate) {
274+
item.resume = candidate.resume
275275
item.status = candidate.status
276276
// return User id as `userId` and JobCandidate id as `id`
277277
item.userId = item.id

0 commit comments

Comments
 (0)