Skip to content

Commit

Permalink
fix: send teamId with api request
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheyenbrock committed Jun 3, 2020
1 parent 120df91 commit 76c3648
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ async function main() {
deployments.length > 1 ? "s" : ""
}, using the latest one.`
);
return api(`/v11/now/deployments/${deployments[0].uid}`);
return api(
`/v11/now/deployments/${deployments[0].uid}${
teamId ? `?teamId=${teamId}&` : ""
}`
);
}
console.log(
`No deployments found yet, waiting for ${DEPLOYMENT_SEARCH_INTERVAL} seconds before trying again (${retries} retries remaining)`
Expand Down Expand Up @@ -80,7 +84,9 @@ async function main() {
);
await wait(DEPLOYMENT_READY_INTERVAL);
const updatedDeployment = await api(
`/v11/now/deployments/${deployment.id}`
`/v11/now/deployments/${deployment.id}${
teamId ? `?teamId=${teamId}&` : ""
}`
);
return waitForDeploymentToBeReady(updatedDeployment, retries - 1);
}
Expand Down

0 comments on commit 76c3648

Please sign in to comment.