From 0ebe8a24786ccc411e9d6f88d5aec6802dc4869a Mon Sep 17 00:00:00 2001 From: hyuna Date: Tue, 12 Nov 2024 23:08:20 +0900 Subject: [PATCH] =?UTF-8?q?chore=20::=20=EB=AA=A8=EC=A7=91=EC=9D=98?= =?UTF-8?q?=EB=A2=B0=EC=84=9C=20=EA=B0=9C=EC=88=98=20query=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Apis/Recruitments/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Apis/Recruitments/index.ts b/src/Apis/Recruitments/index.ts index 5cacdbd..20e8604 100644 --- a/src/Apis/Recruitments/index.ts +++ b/src/Apis/Recruitments/index.ts @@ -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; },