look for all door lock events before if from timestamp is not defined
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user