Skip to content

Commit

Permalink
chore :: 모집의뢰서 개수 query 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
phyuna0525 committed Nov 12, 2024
1 parent 5cfb283 commit 0ebe8a2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Apis/Recruitments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,22 @@ export const useGetRecruitmentForm = (
{
queryKey: ['getRecruitmentCount', searchRecruitmentFormQueryString],
queryFn: async () => {
const { winter_intern } = searchRecruitmentFormQueryString;
const {
year,
company_name,
start,
end,
status,
winter_intern,
} = searchRecruitmentFormQueryString;
const winterIntern =
winter_intern !== null
? `&winter_intern=${winter_intern}`
: '';
const { data } = await instance.get<{ count: number }>(
`${router}/count?${winterIntern}`
`${router}/count?year=${year}${winterIntern}&company_name=${company_name}&start=${start}&end=${end}&status=${
status === '전체' || status === undefined ? '' : status
}`
);
return data;
},
Expand Down

0 comments on commit 0ebe8a2

Please sign in to comment.