We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d91a1 commit 4eea02eCopy full SHA for 4eea02e
src/apiClient.ts
@@ -156,7 +156,9 @@ export default class APIClient {
156
private async sendRequest(options: RequestOptionsParams): Promise<Response> {
157
const req = this.newRequest(options);
158
const controller: AbortController = new AbortController();
159
- const timeoutDuration = options.overrides?.timeout || this.timeout;
+ const timeoutDuration = options.overrides?.timeout
160
+ ? options.overrides.timeout * 1000
161
+ : this.timeout; // timeout is converted to milliseconds in client
162
const timeout = setTimeout(() => {
163
controller.abort();
164
}, timeoutDuration);
0 commit comments