add deleteFees route and implement logic
This commit is contained in:
@@ -274,6 +274,16 @@ const deleteBookingChangeIncidents = (incidents) => {
|
||||
return Promise.all(asyncActions);
|
||||
};
|
||||
|
||||
const deleteBookingChangeIncidentsById = (incidentIds) => {
|
||||
console.log('Delete booking changes in DB :', incidentIds);
|
||||
const filters = {
|
||||
id: {
|
||||
[Op.in]: incidentIds
|
||||
}
|
||||
};
|
||||
return db.bookingChangeIncident.update({deleted: true},{where: filters});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getChargedCanceledReservations,
|
||||
getIncidentsFromChanges,
|
||||
@@ -281,4 +291,5 @@ module.exports = {
|
||||
getShorteningIncidentsForReservationId,
|
||||
getReservationsIncidentsForRemoval,
|
||||
deleteBookingChangeIncidents,
|
||||
deleteBookingChangeIncidentsById
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user