sqlQuery Conversion : minor update to socketio.js

add-archived-and-accountType-columns
Moe 2020-07-10 17:30:31 -07:00
parent 7f42e3efd0
commit aebd01cefd
1 changed files with 2 additions and 6 deletions

View File

@ -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",