From 31b9da7d442be5b12b7a05bc317cb004b635d600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 30 Jan 2015 11:31:30 +0100 Subject: [PATCH] Remove redundant `.toObject()` call from `upsert` --- lib/dao.js | 1 - 1 file changed, 1 deletion(-) 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);