enhance updateAll to coerce the data per property definitions

This commit is contained in:
rudzon 2015-02-24 13:53:23 +02:00
parent fc0667fbf4
commit 35825f5e53
1 changed files with 2 additions and 0 deletions

View File

@ -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);