From 35825f5e53e42275fba8bfb99c293ec91bf0c16c Mon Sep 17 00:00:00 2001 From: rudzon Date: Tue, 24 Feb 2015 13:53:23 +0200 Subject: [PATCH] enhance updateAll to coerce the data per property definitions --- lib/dao.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dao.js b/lib/dao.js index 81e943ea..9527d17d 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -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);