Skip to content

Commit 77b1d05

Browse files
authored
feat: SearchQuery#find accept authOptions (#631)
1 parent 0d829ad commit 77b1d05

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/search.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,14 @@ module.exports = function(AV) {
237237
* completes.
238238
*
239239
* @see AV.Query#find
240+
* @param {AuthOptions} options
240241
* @return {Promise} A promise that is resolved with the results when
241242
* the query completes.
242243
*/
243-
find: function() {
244+
find: function(options) {
244245
var self = this;
245246

246-
var request = this._createRequest();
247+
var request = this._createRequest(undefined, options);
247248

248249
return request.then(function(response) {
249250
//update sid for next querying.

0 commit comments

Comments
 (0)