enhance updateAll to coerce the data per property definitions
This commit is contained in:
parent
fc0667fbf4
commit
35825f5e53
|
@ -1530,6 +1530,8 @@ DataAccessObject.updateAll = function (where, data, options, cb) {
|
|||
try {
|
||||
where = removeUndefined(where);
|
||||
where = Model._coerce(where);
|
||||
data = removeUndefined(data);
|
||||
data = Model._coerce(data);
|
||||
} catch (err) {
|
||||
return process.nextTick(function () {
|
||||
cb(err);
|
||||
|
|
Loading…
Reference in New Issue