Skip to content

Commit

Permalink
Update packages/api-client/src/http/HttpClient.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Przemysław Jóźwik <[email protected]>
  • Loading branch information
thisisamir98 and przemvs authored Oct 10, 2024
1 parent 8e2d8c4 commit f9296d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-client/src/http/HttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ type SendRequest = {
abortController?: AbortController,
): Promise<AxiosResponse<T>> {
const promise = isSynchronousRequest
? this.requestQueue.add(() => this._sendRequest<T>(config, true, abortController))
: this._sendRequest<T>(config, true, abortController);
? this.requestQueue.add(() => this._sendRequest<T>({config, abortController}))
: this._sendRequest<T>({config, abortController});

try {
return await promise;
Expand Down

0 comments on commit f9296d5

Please sign in to comment.