Skip to content

Commit 5184408

Browse files
committed
fix(Query): polish destroyAll sessionToken support
1 parent 7aacb14 commit 5184408

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/query.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ module.exports = function(AV) {
292292
* completes.
293293
*/
294294
destroyAll: function(options){
295-
var self = this;
296-
return self.find().then(function(objects){
297-
return AV.Object.destroyAll(objects);
295+
const filteredOptions = filterOutCallbacks(options);
296+
return this.find(filteredOptions).then(function(objects){
297+
return AV.Object.destroyAll(objects, filteredOptions);
298298
})._thenRunCallbacks(options);
299299
},
300300

0 commit comments

Comments
 (0)