minor cleanup

archive-videos
Moe 2022-08-17 08:46:00 -07:00
parent f12181b903
commit ed2a5f750c
2 changed files with 1 additions and 2 deletions

View File

@ -198,7 +198,7 @@ module.exports = (s,config,lang,app,io) => {
Object.keys(filters).forEach(function(key){
var conditionChain = {}
var dFilter = filters[key]
if(dFilter.enabled === '0')return;
if(!dFilter || !dFilter.where || dFilter.enabled === '0')return;
var numberOfOpenAndCloseBrackets = 0
dFilter.where.forEach(function(condition,place){
const hasOpenBracket = condition.openBracket === '1';

View File

@ -7,7 +7,6 @@ const onvif = require("shinobi-onvif");
const treekill = require('tree-kill');
const connectionTester = require('connection-tester')
const SoundDetection = require('shinobi-sound-detection')
const async = require("async");
const URL = require('url')
const {
Worker