adminmate-express-mongoose
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "adminmate-express-mongoose", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Adminmate Express/Mongoose connector", | ||
@@ -5,0 +5,0 @@ "author": "Marc Delalonde", |
@@ -49,3 +49,3 @@ const mongoose = require('mongoose'); | ||
// If the filter do not pass, remove the smart actions from the list | ||
if (sa.filter(item) === false) { | ||
if (typeof sa.filter === 'function' && sa.filter(item) === false) { | ||
_.remove(smartActionsCopy, { code: sa.code }); | ||
@@ -52,0 +52,0 @@ } |
29366