Skip to content

Commit

Permalink
Fix maxRetry
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagnoux committed Dec 12, 2023
1 parent 1dd3bde commit 9ef14b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apiClient/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ async function requestInternal(args: {
contentType?: string;
}): Promise<any> {
const { path, method, data, maxRetry = 3, body: rawBody, contentType } = args;
if (maxRetry <= 0) {
return;
}
const isGet = method === "GET";
const queryParams =
data != null && method === "GET" ? "?" + getQueryParams(data) : "";
Expand Down

0 comments on commit 9ef14b7

Please sign in to comment.