From 09711c08b0052da722b3462ad40efe944fcac6a2 Mon Sep 17 00:00:00 2001 From: SeieunYoo Date: Sun, 13 Oct 2024 02:57:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20await=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@modal/(.)study-application/[studyId]/page.tsx | 4 ++-- .../@modal/(.)study-cancellation/[studyId]/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-application/[studyId]/page.tsx b/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-application/[studyId]/page.tsx index 42cb0100..e5dfb810 100644 --- a/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-application/[studyId]/page.tsx +++ b/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-application/[studyId]/page.tsx @@ -49,8 +49,8 @@ const StudyApplication = ({ params }: { params: { studyId: number } }) => { const handleClickApplyButton = async () => { const result = await studyApplyApi.applyStudy(Number(studyId)); if (result.success) { - revalidateTagByName(tags.studyApply); - revalidateTagByName(tags.myOngoingStudy); + await revalidateTagByName(tags.studyApply); + await revalidateTagByName(tags.myOngoingStudy); setApplySuccess(true); } }; diff --git a/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-cancellation/[studyId]/page.tsx b/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-cancellation/[studyId]/page.tsx index 68ff33bb..127dd3da 100644 --- a/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-cancellation/[studyId]/page.tsx +++ b/apps/client/app/(afterLogin)/study-apply/@modal/(.)study-cancellation/[studyId]/page.tsx @@ -50,8 +50,8 @@ const StudyCancel = ({ params }: { params: { studyId: number } }) => { const result = await studyApplyApi.cancelStudyApplication(Number(studyId)); if (result.success) { - revalidateTagByName(tags.studyApply); - revalidateTagByName(tags.myOngoingStudy); + await revalidateTagByName(tags.studyApply); + await revalidateTagByName(tags.myOngoingStudy); setCancelSuccess(true); } };