Fix missing fee problem when ORD returns missing membership information

This commit is contained in:
Senad Uka
2019-10-04 17:31:35 +02:00
parent 5c5931f3ed
commit 4de9e1d9a0
8 changed files with 214 additions and 182 deletions

View File

@@ -3,7 +3,7 @@
const { fetchAllBookings, bulkWriteReservationsWithChangesTracking } = require('../officeRnD/bookings');
const { fetchResources } = require('../officeRnD/resources');
const { fetchRates } = require('../officeRnD/rates');
const { officeRnDAPIErrors } = require('../../constants/constants');
const {
getIncidentsFromChanges,
bulkWriteBookingChangeIncidents,
@@ -77,8 +77,8 @@ const checkBookingChanges = () => {
});
})
.catch((error) => {
console.log('Error fetching bookings, resources and rates from ORD ', error);
reject(error);
console.log('\t> [Check Booking Changes] Error fetching bookings, resources and rates from ORD ', error);
reject(officeRnDAPIErrors.FAILED_TO_FETCH_DATA);
});
});
};