From be8b7c41fc6052aff0fefb61d643a483d20ae75d Mon Sep 17 00:00:00 2001 From: Rulu <79538610+hafnium1923@users.noreply.github.com> Date: Sun, 18 Feb 2024 19:58:05 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20=ED=95=98=EB=A3=A8=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=20=EC=9D=BC=EC=A0=95=20=EB=B6=88=EB=9F=AC=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?fetch=20=EB=A7=A4=EA=B0=9C=EB=B3=80=EC=88=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#930)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/queries/useFetchDailySchedules.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/queries/useFetchDailySchedules.ts b/frontend/src/hooks/queries/useFetchDailySchedules.ts index 484e84e25..eafe4cdd3 100644 --- a/frontend/src/hooks/queries/useFetchDailySchedules.ts +++ b/frontend/src/hooks/queries/useFetchDailySchedules.ts @@ -10,7 +10,12 @@ export const useFetchDailySchedules = ( ) => { const { data } = useQuery( ['dailySchedules', year, month, day], - () => fetchSchedules(teamPlaceId, year, month + 1, day), + () => + fetchSchedules( + teamPlaceId, + `${year}${month + 1}${day}`, + `${year}${month + 1}${day}`, + ), { enabled: teamPlaceId > 0, staleTime: STALE_TIME.DAILY_SCHEDULES,