Issues with back-to-back reservations, catching standalone charges & brake between bookings

This commit is contained in:
Senad Uka
2019-12-06 06:10:19 +01:00
parent 43c4214a23
commit 983c08ff36
6 changed files with 421 additions and 181 deletions

View File

@@ -359,7 +359,7 @@ const getLockEntryForReservation = (reservation, nextReservation) => {
const getEntriesBetween = (fromTimestamp, toTimestamp, resourceId) => {
return new Promise((resolve, reject) => {
if (!fromTimestamp || !toTimestamp || !resourceId){
if (!resourceId){
resolve([]);
}else {
const andTimestampFilters = [];