track and charge cancellation charges

This commit is contained in:
Bilal Catic
2019-07-16 02:51:07 +02:00
parent e61476393c
commit 15faeac06f
3 changed files with 44 additions and 25 deletions

View File

@@ -184,6 +184,8 @@ const bulkWriteReservationsWithChangesTracking = (reservations) => {
}
});
instance.setDataValue('hourlyRate', previous.hourlyRate);
if (realChange){
changes.push({
oldReservation: previous,