@prototyp-stockholm/contentful-migrator-programme
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.0.10](https://github.com/prototypsthlm/contentful-migrator-programme/compare/v0.0.9...v0.0.10) (2022-05-31) | ||
### Bug Fixes | ||
* missing env id ([236424a](https://github.com/prototypsthlm/contentful-migrator-programme/commit/236424a708b7abf9852ae7090b69fe666192c702)) | ||
### [0.0.9](https://github.com/prototypsthlm/contentful-migrator-programme/compare/v0.0.8...v0.0.9) (2022-05-31) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@prototyp-stockholm/contentful-migrator-programme", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Tool to manage and keep track of contentful migrations.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -136,3 +136,3 @@ require('dotenv').config() | ||
const tryGetEnv = async (retries) => { | ||
const tryGetEnv = async (envId, retries) => { | ||
try { | ||
@@ -146,3 +146,3 @@ return await spaceModule(env('CTF_SPACE_ID'), envId, env('CTF_CMA_TOKEN')) | ||
await delay(waiting_seconds) | ||
return await tryGetEnv(retries - 1) | ||
return await tryGetEnv(envId, retries - 1) | ||
} | ||
@@ -161,3 +161,3 @@ throw e | ||
return await tryGetEnv(10) | ||
return await tryGetEnv(envId, 10) | ||
} | ||
@@ -164,0 +164,0 @@ |
42976