remove incidents if new duration is longer than initial duration
This commit is contained in:
@@ -50,6 +50,17 @@ const bulkWriteChanges = (changes) => {
|
||||
// return new Promise((resolve) => resolve());
|
||||
};
|
||||
|
||||
const getBookingChangeLogsForReservationId = (reservationId) => {
|
||||
const filter = {
|
||||
reservationId,
|
||||
};
|
||||
|
||||
const order = [['createdAt', 'ASC']];
|
||||
|
||||
return db.bookingReservationChangeLog.findAll({where: filter, order});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
bulkWriteChanges,
|
||||
getBookingChangeLogsForReservationId,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user