rename: requestPosting -> savePosting
This commit is contained in:
@@ -75,8 +75,8 @@ function PostingDialog({ postingType, postingTargets }: PostingDialogProps) {
|
||||
queryFn: () => SiteApi.getSiteList({}),
|
||||
});
|
||||
|
||||
const { mutateAsync: requestPosting } = useMutation({
|
||||
mutationFn: (data: WithModePost[]) => PostingApi.requestPosting(data),
|
||||
const { mutateAsync: savePosting } = useMutation({
|
||||
mutationFn: (data: WithModePost[]) => PostingApi.savePosting(data),
|
||||
onSuccess: () => {
|
||||
alert("저장되었습니다.");
|
||||
},
|
||||
@@ -209,7 +209,7 @@ function PostingDialog({ postingType, postingTargets }: PostingDialogProps) {
|
||||
const handleSave = async () => {
|
||||
if (await confirm("저장하시겠습니까?")) {
|
||||
const data = form.getValues("pstg");
|
||||
await requestPosting(data);
|
||||
await savePosting(data);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user