Remove redundant `.toObject()` call from `upsert`

This commit is contained in:
Miroslav Bajtoš 2015-01-30 11:31:30 +01:00
parent 5cfbfe3a19
commit 31b9da7d44
1 changed files with 0 additions and 1 deletions

View File

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