bookshelf-modelbase-plus
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -202,3 +202,4 @@ const _ = require('lodash'); | ||
if (_.isArray(value) && operator in searchChain) { | ||
return searchChain[operator.replace('and', options._logic || 'and')](`${tableName}.${key}`, value); | ||
const searchMethod = options._logic === 'or' ? operator.replace('and', 'or') : operator; | ||
return searchChain[searchMethod](`${tableName}.${key}`, value); | ||
} | ||
@@ -205,0 +206,0 @@ return searchChain[options._logic === 'or' ? 'orWhere' : 'andWhere'](`${tableName}.${key}`, operator, value); |
{ | ||
"name": "bookshelf-modelbase-plus", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "Extended functionality for REST operations with validation, filtering, ordering, importing records.", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76004
1421