From 8debec1ec589ab419dff8346b6de65e62944a4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Fri, 4 Oct 2024 14:51:26 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=A6=AC=EB=B7=B0=20=EC=88=98=EB=9D=BD?= =?UTF-8?q?=20=EA=B1=B0=EC=A0=88=20=EC=83=9D=EC=84=B1=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=ED=9B=84=20=EC=BA=90=EC=8B=9C=20=EC=82=AD=EC=A0=9C=EB=A5=BC?= =?UTF-8?q?=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/queries/reviews/useApproveReviewQuery.ts | 1 + frontend/src/queries/reviews/useCreateReviewQuery.ts | 1 + frontend/src/queries/reviews/useDeleteReviewQuery.ts | 1 + frontend/src/queries/reviews/useRejectReviewQuery.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/frontend/src/queries/reviews/useApproveReviewQuery.ts b/frontend/src/queries/reviews/useApproveReviewQuery.ts index c394a9b..643b815 100644 --- a/frontend/src/queries/reviews/useApproveReviewQuery.ts +++ b/frontend/src/queries/reviews/useApproveReviewQuery.ts @@ -14,6 +14,7 @@ export default function useApproveReviewQuery({ projectId, reviewId, memberId }: mutationFn: () => approveReview(projectId, reviewId), onSuccess: () => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', projectId, reviewId, memberId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', projectId, reviewId, memberId] }); }, }); } diff --git a/frontend/src/queries/reviews/useCreateReviewQuery.ts b/frontend/src/queries/reviews/useCreateReviewQuery.ts index cdee175..a3108de 100644 --- a/frontend/src/queries/reviews/useCreateReviewQuery.ts +++ b/frontend/src/queries/reviews/useCreateReviewQuery.ts @@ -18,6 +18,7 @@ export default function useCreateReviewQuery() { onSuccess: (_, variables) => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', variables.projectId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', variables.projectId] }); }, }); } diff --git a/frontend/src/queries/reviews/useDeleteReviewQuery.ts b/frontend/src/queries/reviews/useDeleteReviewQuery.ts index 255ba3a..116e458 100644 --- a/frontend/src/queries/reviews/useDeleteReviewQuery.ts +++ b/frontend/src/queries/reviews/useDeleteReviewQuery.ts @@ -9,6 +9,7 @@ export default function useDeleteReviewQuery() { deleteReview(projectId, reviewId, memberId), onSuccess: (_, variables) => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', variables.projectId, variables.reviewId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', variables.projectId, variables.reviewId] }); }, }); } diff --git a/frontend/src/queries/reviews/useRejectReviewQuery.ts b/frontend/src/queries/reviews/useRejectReviewQuery.ts index 28c7b80..1e4f323 100644 --- a/frontend/src/queries/reviews/useRejectReviewQuery.ts +++ b/frontend/src/queries/reviews/useRejectReviewQuery.ts @@ -14,6 +14,7 @@ export default function useRejectReviewQuery({ projectId, reviewId, memberId }: mutationFn: () => rejectReview(projectId, reviewId), onSuccess: () => { queryClient.invalidateQueries({ queryKey: ['reviewDetail', projectId, reviewId, memberId] }); + queryClient.invalidateQueries({ queryKey: ['reviewByStatus', projectId, reviewId, memberId] }); }, }); }