fix how unlock and lock entries are matched to the reservation

This commit is contained in:
Bilal Catic
2019-12-23 09:08:36 +01:00
parent a4573a9a13
commit 57cb6e8eaf
2 changed files with 12 additions and 9 deletions

View File

@@ -368,7 +368,10 @@ const getIncidentData = (reservation) => {
const { resourceId } = currentReservation;
// const reservationMoment = moment.tz(currentReservation.start, currentReservation.timezone);
// if (currentReservation.memberId === '5ce785af422bdd00967fb781' && reservationMoment.isAfter('2019-11-23 00:00:16+00')) {
// if (currentReservation.memberId === '5ce785af422bdd00967fb781' &&
// reservationMoment.isAfter('2019-12-11 00:00:16+00') &&
// reservationMoment.isBefore('2019-12-12 23:59:59')
// ) {
// console.log('\r\n\r\n==== ANALYSE RESERVATION [GET INCIDENT DATA] ==== ');
// console.log('\tStart : ', reservationMoment.format('DD.MM, HH:mm'));
// console.log('\tEnd : ', moment.tz(currentReservation.end, currentReservation.timezone).format('DD.MM, HH:mm'));