Skip to content

Commit

Permalink
fix(lbac-2305): remove pending state (#1700)
Browse files Browse the repository at this point in the history
* fix: remove pending state

* fix: snapshot

* fix: keep status transformation for get single job
  • Loading branch information
kevbarns authored Dec 11, 2024
1 parent 831c520 commit 84f49e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export const convertLbaRecruiterToJobOfferApi = (offresEmploiLba: IJobResult[]):
expiration: job.job_expiration_date ?? null,
},
opening_count: job.job_count ?? 1,
status: translateJobStatus(job.job_status),
status: translateJobStatus(job.job_status)!,
},

workplace: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9847,7 +9847,6 @@ Limite : 20 appel(s) / 1 seconde(s)
"Active",
"Filled",
"Cancelled",
"Pending",
],
"type": "string",
},
Expand Down Expand Up @@ -10249,7 +10248,6 @@ Limite : 20 appel(s) / 1 seconde(s)
"Active",
"Filled",
"Cancelled",
"Pending",
],
"type": "string",
},
Expand Down Expand Up @@ -10942,7 +10940,6 @@ Limite : 20 appel(s) / 1 seconde(s)
"Active",
"Filled",
"Cancelled",
"Pending",
],
"type": "string",
},
Expand Down
5 changes: 2 additions & 3 deletions shared/models/job.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ export enum JOB_STATUS_ENGLISH {
ACTIVE = "Active",
POURVUE = "Filled",
ANNULEE = "Cancelled",
EN_ATTENTE = "Pending",
}

export function translateJobStatus(status: JOB_STATUS): JOB_STATUS_ENGLISH {
export function translateJobStatus(status: JOB_STATUS): JOB_STATUS_ENGLISH | undefined {
switch (status) {
case JOB_STATUS.ACTIVE:
return JOB_STATUS_ENGLISH.ACTIVE
Expand All @@ -31,7 +30,7 @@ export function translateJobStatus(status: JOB_STATUS): JOB_STATUS_ENGLISH {
case JOB_STATUS.ANNULEE:
return JOB_STATUS_ENGLISH.ANNULEE
case JOB_STATUS.EN_ATTENTE:
return JOB_STATUS_ENGLISH.EN_ATTENTE
return undefined
default:
assertUnreachable(status)
}
Expand Down

0 comments on commit 84f49e7

Please sign in to comment.