We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aacb14 commit 5184408Copy full SHA for 5184408
src/query.js
@@ -292,9 +292,9 @@ module.exports = function(AV) {
292
* completes.
293
*/
294
destroyAll: function(options){
295
- var self = this;
296
- return self.find().then(function(objects){
297
- return AV.Object.destroyAll(objects);
+ const filteredOptions = filterOutCallbacks(options);
+ return this.find(filteredOptions).then(function(objects){
+ return AV.Object.destroyAll(objects, filteredOptions);
298
})._thenRunCallbacks(options);
299
},
300
0 commit comments