Add logging in addFees steps
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user