look for all door lock events before if from timestamp is not defined

This commit is contained in:
Bilal Catic
2019-12-05 09:25:18 +01:00
parent 6df1a798ee
commit 166e2a0a9f

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 = [];