diff --git a/lib/dao.js b/lib/dao.js index 4cf85929..6f07907b 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -771,6 +771,7 @@ DataAccessObject.prototype.save = function (options, callback) { function save() { inst.trigger('save', function (saveDone) { inst.trigger('update', function (updateDone) { + data = removeUndefined(data); inst._adapter().save(modelName, inst.constructor._forDB(data), function (err) { if (err) { return callback(err, inst);