refactor: 함수명 수정

This commit is contained in:
Daseul Kim 2025-02-07 17:12:48 +09:00
parent 2de4739cf0
commit 61fbc44ced

View File

@ -156,7 +156,7 @@ export function usePlan(params = {}) {
* case 2) 플랜 생성 : isInitPlan = false, isCopy = false
* case 3) 복제 플랜 생성 : isInitPlan = false, isCopy = true
*/
const postObjectPlanTemp = async (userId, objectNo, isCopy = false, isInitPlan = false) => {
const postObjectPlan = async (userId, objectNo, isCopy = false, isInitPlan = false) => {
const planData = isCopy
? {
userId: userId,
@ -345,13 +345,13 @@ export function usePlan(params = {}) {
text: `Plan ${currentCanvasPlan.planNo} ` + getMessage('plan.message.confirm.copy'),
type: 'confirm',
confirmFn: async () => {
await postObjectPlanTemp(userId, objectNo, true, false)
await postObjectPlan(userId, objectNo, true, false)
},
denyFn: async () => {
await postObjectPlanTemp(userId, objectNo, false, false)
await postObjectPlan(userId, objectNo, false, false)
},
})
: await postObjectPlanTemp(userId, objectNo, false, false)
: await postObjectPlan(userId, objectNo, false, false)
}
/**
@ -407,7 +407,7 @@ export function usePlan(params = {}) {
setCurrentCanvasPlan(res.find((plan) => plan.planNo === planNo))
setPlans(res)
} else {
await postObjectPlanTemp(userId, objectNo, false, true)
await postObjectPlan(userId, objectNo, false, true)
}
})
}