system alarm test2

This commit is contained in:
hyunwoo93.cha
2024-07-01 18:09:26 +09:00
parent 6550b28858
commit 2c69009399

View File

@@ -251,7 +251,10 @@ export const addReservation = (data) => {
});
};
export const deleteReservation = (scheduleIdList) => {
export const deleteReservation = (
scheduleIdList,
{ onSuccess, onFailure, onComplete }
) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND deleteReservation scheduleIdList", scheduleIdList);
return;
@@ -263,21 +266,15 @@ export const deleteReservation = (scheduleIdList) => {
parameters: {
scheduleIdList: scheduleIdList,
},
onSuccess: (res) => {
console.log("LUNA SEND deleteReservation success", res);
},
onFailure: (err) => {
console.log("LUNA SEND deleteReservation failed", err);
},
onSuccess,
onFailure,
onComplete,
});
};
export const searchReservation = (
chanId,
{ onSuccess, onFailure, onComplete }
) => {
export const searchReservation = ({ onSuccess, onFailure, onComplete }) => {
if (typeof window === "object" && !window.PalmSystem) {
console.log("LUNA SEND searchReservation chanId", chanId);
console.log("LUNA SEND searchReservation chanId");
return;
}