diff --git a/src/postmanAPI.js b/src/postmanAPI.js index 92fddcf..970759c 100644 --- a/src/postmanAPI.js +++ b/src/postmanAPI.js @@ -6,7 +6,7 @@ class Collection { this.collectionId = collectionId this.apiKey = process.env.POSTMAN_API_KEY this.axios = axios.create({ - timeout: 1000 * 60, // 60 seconds + timeout: 1000 * 60 * 5, // 5 minutes headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey } }) } @@ -58,7 +58,7 @@ class Folder { this.collectionId = collectionId this.apiKey = process.env.POSTMAN_API_KEY this.axios = axios.create({ - timeout: 1000 * 60, // 60 seconds + timeout: 1000 * 60 * 5, // 5 minutes headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey } }) } @@ -120,7 +120,7 @@ class Request { this.collectionId = collectionId this.apiKey = process.env.POSTMAN_API_KEY this.axios = axios.create({ - timeout: 1000 * 60, // 60 seconds + timeout: 1000 * 60 * 5, // 5 minutes headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey } }) } @@ -183,7 +183,7 @@ class Response { this.collectionId = collectionId this.apiKey = process.env.POSTMAN_API_KEY this.axios = axios.create({ - timeout: 1000 * 60, // 60 seconds + timeout: 1000 * 60 * 5, // 5 minutes headers: { 'Content-Type': 'application/json', 'X-Api-Key': this.apiKey } }) }