diff --git a/packages/cli-e2e/utils/platform.ts b/packages/cli-e2e/utils/platform.ts index b112583b5e..fd8aba20d6 100644 --- a/packages/cli-e2e/utils/platform.ts +++ b/packages/cli-e2e/utils/platform.ts @@ -40,17 +40,14 @@ export async function createOrg( `/rest/organizations?name=${name}&organizationTemplate=${organizationTemplate}`, process.env.PLATFORM_HOST ); - const response = await ( - await fetch(url.href, { - method: 'POST', - ...authHeader(accessToken), - }) - ).json(); - - console.log('********* createOrg ************'); - console.log(response); - - return response.id; + return ( + await ( + await fetch(url.href, { + method: 'POST', + ...authHeader(accessToken), + }) + ).json() + ).id; } function authHeader(accessToken: string) { diff --git a/packages/cli/core/src/commands/ui/deploy.ts b/packages/cli/core/src/commands/ui/deploy.ts index 31220b28eb..965e857ba7 100644 --- a/packages/cli/core/src/commands/ui/deploy.ts +++ b/packages/cli/core/src/commands/ui/deploy.ts @@ -287,10 +287,6 @@ export default class Deploy extends CLICommand { startSpinner(`Creating new Hosted Page named "${page.name}".`); const response = await this.platformClient.hostedPages.create(page); - console.log('*********************'); - console.log(response); - console.log('*********************'); - stopSpinner(); this.log( `To update your page, run "coveo ${this.identifier} -p=${response.id}".`