diff --git a/creates/mindee_generated.js b/creates/mindee_generated.js index 9ef7586..2da49a7 100644 --- a/creates/mindee_generated.js +++ b/creates/mindee_generated.js @@ -36,8 +36,8 @@ module.exports = { .split('/'); const apiOwner = splitUrl[0]; const apiName = splitUrl[1]; - const response = enqueueAndParse(z, bundle.inputData.document, apiOwner, apiName, apiVersion, defaults.postHeaders, bundle.inputData.requestSettingsData.max_async_retries); - return promise.then((response) => JSON.parse(response.content)); + const response = enqueueAndParse(z, bundle.inputData.document, apiOwner, apiName, apiVersion, defaults.postHeaders, 60); + return response.then((res) => JSON.parse(res.content)); }, sample: { "api_request": { diff --git a/test/mindee.js b/test/mindee.js index 3779ca3..8093711 100644 --- a/test/mindee.js +++ b/test/mindee.js @@ -17,9 +17,6 @@ const bundle = { oauth_token: process.env.OAUTH_TOKEN, oauth_token_secret: process.env.OAUTH_TOKEN_SECRET, }, - requestSettingsData: { - max_async_retries: 60, - }, inputData: {}, }; zapier.tools.env.inject();