Skip to content

Commit 49ff24f

Browse files
committed
return the resume property instead of resumeLink in TeamService.getTeamJob
1 parent 8fdd9ef commit 49ff24f

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
@@ -2310,12 +2310,12 @@ components:
23102310
id:
23112311
type: string
23122312
format: uuid
2313-
description: "The job cadidate id."
2313+
description: "The job candidate id."
23142314
userId:
23152315
type: string
23162316
format: uuid
23172317
description: "User id."
2318-
resumeLink:
2318+
resume:
23192319
type: string
23202320
format: url
23212321
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)