Skip to content

Commit 370ce9c

Browse files
committed
fix: return start/end date for resources
ref issue #60
1 parent 2f30696 commit 370ce9c

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

docs/swagger.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,16 +2019,21 @@ components:
20192019
skillMatched:
20202020
type: integer
20212021
description: The percentage of skill matched for that particular job he/she is assinged
2022-
job:
2023-
type: object
2024-
properties:
2025-
id:
2026-
type: string
2027-
format: uuid
2028-
description: The job id the member is assinged at
2029-
name:
2030-
type: string
2031-
description: The job name the member is assinged at
2022+
jobId:
2023+
type: string
2024+
format: uuid
2025+
description: The job id the member is assinged at
2026+
startDate:
2027+
type: string
2028+
format: date-time
2029+
example: "2020-09-27T04:17:23.131Z"
2030+
description: "Resource start date."
2031+
endDate:
2032+
type: string
2033+
format: date-time
2034+
example: "2020-09-27T04:17:23.131Z"
2035+
description: "Resource end date."
2036+
20322037
jobs:
20332038
type: array
20342039
description: "The jobs which are opened"

src/services/TeamService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ async function getTeamDetail (currentUser, projects, isSearch = true) {
145145
if (!isSearch) {
146146
user.jobId = rb.jobId
147147
user.customerRate = rb.customerRate
148+
user.startDate = rb.startDate
149+
user.endDate = rb.endDate
148150
}
149151
return user
150152
})

0 commit comments

Comments
 (0)