Skip to content

Commit

Permalink
fix(cosmos): bind fetch
Browse files Browse the repository at this point in the history
fixes #75
  • Loading branch information
jdanyow committed Oct 4, 2020
1 parent 920318f commit 6681722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cosmos/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class CosmosClient {
this.consistencyLevel = config.consistencyLevel || 'Session';
this.dbId = config.dbId;
this.collId = config.collId;
this.systemFetch = config.fetch || fetch;
this.systemFetch = config.fetch || fetch.bind(self);
this.sessionToken = config.sessionToken || '';
}

Expand Down

0 comments on commit 6681722

Please sign in to comment.