Remove redundant `.toObject()` call from `upsert`
This commit is contained in:
parent
5cfbfe3a19
commit
31b9da7d44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue