remove schema from transformWhere

This commit is contained in:
Drew Gross
2016-04-26 10:20:17 -07:00
parent a926712951
commit d4bd21fcbc
4 changed files with 10 additions and 22 deletions

View File

@@ -177,13 +177,7 @@ export class MongoStorageAdapter {
deleteObjectsByQuery(className, query, schemaController, validate, parseFormatSchema) {
return this.adaptiveCollection(className)
.then(collection => {
let mongoWhere = transform.transformWhere(
schemaController,
className,
query,
{ validate },
parseFormatSchema
);
let mongoWhere = transform.transformWhere(className, query, { validate }, parseFormatSchema);
return collection.deleteMany(mongoWhere)
})
.then(({ result }) => {