Skip to content

Commit

Permalink
feat: 특정 지원자에 대한 지원 상태를 가져오는 api 함수 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
smb0123 committed Sep 16, 2024
1 parent 1fa563e commit beb5efe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/apis/applicant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,14 @@ export const patchApplicantState = async (

return data;
};

export const getApplicantState = async (
navigationId: string,
applicantId: string,
generation: string
): Promise<ApplicantPassState | undefined> => {
const cardsData = await getKanbanCards(navigationId, generation);

return cardsData.find((card) => card.applicantId === applicantId)?.state
.passState;
};

0 comments on commit beb5efe

Please sign in to comment.