This commit is contained in:
committed by
Florent Vilmart
parent
4ea455b20a
commit
1eff210a51
@@ -310,7 +310,7 @@ export class MongoStorageAdapter {
|
||||
const mongoWhere = transformWhere(className, query, schema);
|
||||
return this._adaptiveCollection(className)
|
||||
.then(collection => collection._mongoCollection.findAndModify(mongoWhere, [], mongoUpdate, { new: true }))
|
||||
.then(result => result.value);
|
||||
.then(result => mongoObjectToParseObject(className, result.value, schema));
|
||||
}
|
||||
|
||||
// Hopefully we can get rid of this. It's only used for config and hooks.
|
||||
|
||||
Reference in New Issue
Block a user