diff --git a/lib/dao.js b/lib/dao.js index afb11518..6dccd9b7 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -316,7 +316,6 @@ DataAccessObject.updateOrCreate = DataAccessObject.upsert = function upsert(data // FIXME(bajtos) validate the model! // https://github.com/strongloop/loopback-datasource-juggler/issues/262 - update = inst.toObject(true); update = removeUndefined(update); self.getDataSource().connector .updateOrCreate(Model.modelName, update, done);