Add logging in addFees steps

This commit is contained in:
Bilal Catic
2019-10-04 16:54:12 +02:00
parent ca55bf83af
commit fc662b73a6
7 changed files with 211 additions and 181 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);
});
});
};