chore: endpoint key 수정

This commit is contained in:
2025-04-07 13:53:17 +09:00
parent 0e7c59f084
commit 3a8039c5d2
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ function ModifyPage({ serial }: { serial: string }) {
});
const { data: postHistory } = useQuery({
queryKey: [ENDPOINT.CMS_SERVICE.SITE_PSTGS, serial],
queryKey: [ENDPOINT.CMS_SERVICE.POSTINGS, serial],
queryFn: () => PostingApi.getPostingHistory({ pstgTrgtNo: Number(serial) }),
});
@@ -58,7 +58,7 @@ function ModifyPage({ serial }: { serial: string }) {
mutationFn: (data: WithModePost[]) => PostingApi.requestPosting(data),
onSuccess: () => {
queryClient.invalidateQueries({
queryKey: [ENDPOINT.CMS_SERVICE.SITE_PSTGS, serial],
queryKey: [ENDPOINT.CMS_SERVICE.POSTINGS, serial],
});
},
});