diff --git a/libs/socketio.js b/libs/socketio.js index 386a6a68..16cbe2a2 100644 --- a/libs/socketio.js +++ b/libs/socketio.js @@ -553,9 +553,7 @@ module.exports = function(s,config,lang,io){ } } if(monitorRestrictions.length > 0){ - eventWhereQuery = eventWhereQuery.concat([ - monitorRestrictions - ]) + eventWhereQuery.push(monitorRestrictions) } console.log(eventWhereQuery) s.knexQuery({ @@ -612,9 +610,7 @@ module.exports = function(s,config,lang,io){ } } if(monitorRestrictions.length > 0){ - videoWhereQuery = videoWhereQuery.concat([ - monitorRestrictions - ]) + videoWhereQuery.push(monitorRestrictions) } s.knexQuery({ action: "select",