Fix repeated booking #72

Merged
bilal.catic merged 6 commits from fix-repeated-booking into master 2019-12-05 09:29:32 +01:00
Showing only changes of commit 0ef109ffce - Show all commits

View File

@@ -49,10 +49,13 @@ const checkBookingChanges = () => {
Promise.all(asyncActions)
.then((asyncActionResults) => {
const changes = asyncActionResults[1];
// console.log(changes);
bulkWriteChanges(changes)
.then(() => {
getIncidentsFromChanges(changes)
.then(({incidents, reservationsForAdditionalCheck}) => {
// console.log('=====INCIDENTS=====');
// console.log(incidents);
bulkWriteBookingChangeIncidents(incidents)
.then(() => {
getReservationsIncidentsForRemoval(reservationsForAdditionalCheck)