fix: Timeout values

This commit is contained in:
Andras Bacsai
2022-04-12 18:21:10 +02:00
parent cc2ec55c4d
commit 03962663c2
2 changed files with 4 additions and 6 deletions

View File

@@ -1,11 +1,9 @@
// TODO: Make this functions generic
async function send({
method,
path,
data = {},
headers,
timeout = 30000
timeout = 120000
}): Promise<Record<string, unknown>> {
const controller = new AbortController();
const id = setTimeout(() => controller.abort(), timeout);