Skip to content

Commit

Permalink
Display CVs in chronological order
Browse files Browse the repository at this point in the history
  • Loading branch information
katamatata committed Mar 1, 2023
1 parent 9bda120 commit 5fadd46
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/redi-talent-pool/src/services/api/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,14 @@ export async function updateCurrentUserTpJobseekerProfile(

export async function fetchAllCurrentUserTpJobseekerCv(): Promise<
Array<Partial<TpJobseekerCv>>
> {
> {
const userId = getAccessTokenFromLocalStorage().userId
const resp = await http(`${API_URL}/redUsers/${userId}/tpJobseekerCv`)
return resp.data
return http(
`${API_URL}/redUsers/${userId}/tpJobseekerCv?filter=${JSON.stringify({
order: 'createdAt DESC',
limit: 0,
})}`)
.then((resp) => resp.data)
}

export async function fetchCurrentUserTpJobseekerCvById(
Expand Down

0 comments on commit 5fadd46

Please sign in to comment.