fix door lock charges - unlocked incident

This commit is contained in:
Bilal Catic
2019-07-02 10:12:56 +02:00
parent b9715a1ebe
commit fc4d374e23
3 changed files with 81 additions and 66 deletions

View File

@@ -116,10 +116,10 @@ const getFirstPreviousBooking = (reservation) => {
const getFirstReservationInBlock = (reservation) => {
return new Promise ((resolve, reject) => {
const {resourceId, memberId, start} = reservation;
const { resourceId, memberId, start } = reservation;
const fromTimestamp = moment.utc(start).subtract(MAX_BACK_TO_BACK_DIFFERENCE).toISOString();
const toTimestamp = reservation.end;
const toTimestamp = start;
const filters = {
resourceId,