Skip to content

Commit 5165c80

Browse files
committed
Remove validate parameter from deleteObjectsByQuery
1 parent 643bdc8 commit 5165c80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ export class MongoStorageAdapter {
181181
// If no objects match, reject with OBJECT_NOT_FOUND. If objects are found and deleted, resolve with undefined.
182182
// If there is some other error, reject with INTERNAL_SERVER_ERROR.
183183

184-
// Currently accepts validate for legacy reasons. Currently accepts the schema, that may not actually be necessary.
185-
deleteObjectsByQuery(className, query, validate, schema) {
184+
// Currently accepts the schema, that may not actually be necessary.
185+
deleteObjectsByQuery(className, query, schema) {
186186
return this.adaptiveCollection(className)
187187
.then(collection => {
188188
let mongoWhere = transform.transformWhere(className, query, schema);

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ DatabaseController.prototype.destroy = function(className, query, { acl } = {})
368368
}
369369
throw error;
370370
})
371-
.then(parseFormatSchema => this.adapter.deleteObjectsByQuery(className, query, !this.skipValidation, parseFormatSchema))
371+
.then(parseFormatSchema => this.adapter.deleteObjectsByQuery(className, query, parseFormatSchema))
372372
.catch(error => {
373373
// When deleting sessions while changing passwords, don't throw an error if they don't have any sessions.
374374
if (className === "_Session" && error.code === Parse.Error.OBJECT_NOT_FOUND) {

0 commit comments

Comments
 (0)