chore: endpoint key 수정
This commit is contained in:
@@ -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],
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user