@@ -3,7 +3,7 @@ import { redirect } from '@sveltejs/kit';
33import { base } from '$app/paths' ;
44import { isCloud } from '$lib/system' ;
55import { BillingPlan } from '$lib/constants' ;
6- import { ID , type Models , Query } from '@appwrite.io/console' ;
6+ import { ID , type Models , Query , Platform } from '@appwrite.io/console' ;
77import type { OrganizationList } from '$lib/stores/organization' ;
88import { redirectTo } from '$routes/store' ;
99import type { PageLoad } from './$types' ;
@@ -67,7 +67,7 @@ export const load: PageLoad = async ({ parent, url }) => {
6767 let organizations : Models . TeamList < Record < string , unknown > > | OrganizationList | undefined ;
6868 if ( isCloud ) {
6969 organizations = await sdk . forConsole . billing . listOrganization ( [
70- Query . equal ( 'platform' , 'appwrite' )
70+ Query . equal ( 'platform' , Platform . Appwrite )
7171 ] ) ;
7272 } else {
7373 organizations = await sdk . forConsole . teams . list ( ) ;
@@ -91,7 +91,7 @@ export const load: PageLoad = async ({ parent, url }) => {
9191
9292 if ( isCloud ) {
9393 organizations = await sdk . forConsole . billing . listOrganization ( [
94- Query . equal ( 'platform' , 'appwrite' )
94+ Query . equal ( 'platform' , Platform . Appwrite )
9595 ] ) ;
9696 } else {
9797 organizations = await sdk . forConsole . teams . list ( ) ;
0 commit comments