fix: failing checks

This commit is contained in:
Atharva Deosthale
2025-09-03 11:44:04 +05:30
parent 2ca56307c0
commit 0e20e9f2e3
2 changed files with 4 additions and 6 deletions
@@ -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
+2 -3
View File
@@ -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