Closed yalcinmuhammed closed 5 years ago
docs parameter can be null, empty array or full array. In this case, null and empty array was not controlled. I inserted these conditions. if(!docs || (docs && !docs.length)) return next();
if(!docs || (docs && !docs.length)) return next();
docs parameter can be null, empty array or full array. In this case, null and empty array was not controlled. I inserted these conditions.
if(!docs || (docs && !docs.length)) return next();