test, deleted system alert
This commit is contained in:
@@ -100,25 +100,18 @@ export const setMainLiveUpcomingAlarm = (props) => (dispatch, getState) => {
|
||||
}
|
||||
//
|
||||
else if (alamDispFlag === "N") {
|
||||
dispatch(searchReservation(), {
|
||||
dispatch(searchReservation(showId), {
|
||||
onSuccess: (res) => {
|
||||
console.log("LUNA SEND searchReservation success", res);
|
||||
|
||||
let index = res.findIndex((item) => (item.showId = showId));
|
||||
let deletedIdList = [];
|
||||
|
||||
if (index !== -1) {
|
||||
deletedIdList.push(res[index]._id);
|
||||
|
||||
dispatch(deleteReservation(deletedIdList), {
|
||||
onSuccess: (res) => {
|
||||
console.log("LUNA SEND deleteReservation success", res);
|
||||
},
|
||||
onFailure: (err) => {
|
||||
console.log("LUNA SEND deleteReservation failed", err);
|
||||
},
|
||||
});
|
||||
}
|
||||
dispatch(deleteReservation(res), {
|
||||
onSuccess: (res) => {
|
||||
console.log("LUNA SEND deleteReservation success", res);
|
||||
},
|
||||
onFailure: (err) => {
|
||||
console.log("LUNA SEND deleteReservation failed", err);
|
||||
},
|
||||
});
|
||||
},
|
||||
onFailure: (err) => {
|
||||
console.log("LUNA SEND searchReservation failed", err);
|
||||
|
||||
Reference in New Issue
Block a user