bookshelf-modelbase-plus
Advanced tools
Comparing version 2.11.4 to 2.11.5
@@ -849,5 +849,10 @@ const _ = require('lodash'); | ||
} | ||
const cols = validateColumns || this.columns; | ||
const idCol = this.prototype.idAttribute || 'id'; | ||
if (!_.includes(cols, idCol)) { | ||
cols.push(idCol); | ||
} | ||
const validationErrors = rows | ||
.map((row, i) => { | ||
const rowToValidate = _.pick(row, validateColumns || this.columns); | ||
const rowToValidate = _.pick(row, cols); | ||
try { | ||
@@ -854,0 +859,0 @@ const m = this.forge(rowToValidate); |
{ | ||
"name": "bookshelf-modelbase-plus", | ||
"version": "2.11.4", | ||
"version": "2.11.5", | ||
"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
85724
1656