From 0e20e9f2e3560fbcd3a863029ab9d76a1d2c1d5c Mon Sep 17 00:00:00 2001 From: Atharva Deosthale Date: Wed, 3 Sep 2025 11:44:04 +0530 Subject: [PATCH] fix: failing checks --- src/routes/(public)/functions/deploy/+page.ts | 5 ++--- src/routes/(public)/sites/deploy/+page.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/routes/(public)/functions/deploy/+page.ts b/src/routes/(public)/functions/deploy/+page.ts index 858188b3b..5fe7ce39f 100644 --- a/src/routes/(public)/functions/deploy/+page.ts +++ b/src/routes/(public)/functions/deploy/+page.ts @@ -78,10 +78,9 @@ export const load: PageLoad = async ({ parent, url }) => { // Create default organization if none exists - matches console's onboarding behavior if (!organizations?.total) { - let org = null; try { if (isCloud) { - org = await sdk.forConsole.billing.createOrganization( + await sdk.forConsole.billing.createOrganization( ID.unique(), 'Personal Projects', BillingPlan.FREE, @@ -89,7 +88,7 @@ export const load: PageLoad = async ({ parent, url }) => { null ); } else { - org = await sdk.forConsole.teams.create(ID.unique(), 'Personal Projects'); + await sdk.forConsole.teams.create(ID.unique(), 'Personal Projects'); } // Refetch organizations after creation diff --git a/src/routes/(public)/sites/deploy/+page.ts b/src/routes/(public)/sites/deploy/+page.ts index 16337fba1..308a220ec 100644 --- a/src/routes/(public)/sites/deploy/+page.ts +++ b/src/routes/(public)/sites/deploy/+page.ts @@ -96,10 +96,9 @@ export const load: PageLoad = async ({ parent, url }) => { // Create default organization if none exists - matches console's onboarding behavior if (!organizations?.total) { - let org = null; try { if (isCloud) { - org = await sdk.forConsole.billing.createOrganization( + await sdk.forConsole.billing.createOrganization( ID.unique(), 'Personal Projects', BillingPlan.FREE, @@ -107,7 +106,7 @@ export const load: PageLoad = async ({ parent, url }) => { null ); } else { - org = await sdk.forConsole.teams.create(ID.unique(), 'Personal Projects'); + await sdk.forConsole.teams.create(ID.unique(), 'Personal Projects'); } // Refetch organizations after creation