Skip to content

Commit

Permalink
Make fetch callback optional as is everywhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 25, 2024
1 parent 147e1c9 commit 2d4a30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class Query<T = {}> {
this._maybeUnloadDocs(ids);
};

fetch(cb: ErrorCallback) {
fetch(cb?: ErrorCallback) {
cb = this.model.wrapCallback(cb);
this.context.fetchQuery(this);

Expand Down

0 comments on commit 2d4a30e

Please sign in to comment.