Skip to content

Commit

Permalink
print response
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lakhdar committed Sep 28, 2023
1 parent c2a59ff commit d19df12
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/cli-e2e/utils/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ export async function createOrg(
`/rest/organizations?name=${name}&organizationTemplate=${organizationTemplate}`,
process.env.PLATFORM_HOST
);
return (
await (
await fetch(url.href, {
method: 'POST',
...authHeader(accessToken),
})
).json()
).id;
const response = await (
await fetch(url.href, {
method: 'POST',
...authHeader(accessToken),
})
).json();

console.log('********* createOrg ************');
console.log(response);

return response.id;
}

function authHeader(accessToken: string) {
Expand Down

0 comments on commit d19df12

Please sign in to comment.