From 7d1e9af38eeed53697e6ee4bbb5fbdf9f2cf8b19 Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 15 Apr 2025 18:25:58 +0530 Subject: [PATCH] fix: tests. --- .../(console)/organization-[organization]/+page.svelte | 2 +- .../organization-[organization]/createProject.svelte | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/routes/(console)/organization-[organization]/+page.svelte b/src/routes/(console)/organization-[organization]/+page.svelte index 1e678f51c..f7e391c74 100644 --- a/src/routes/(console)/organization-[organization]/+page.svelte +++ b/src/routes/(console)/organization-[organization]/+page.svelte @@ -107,7 +107,7 @@ ID.unique(), `Imported project ${new Date().toISOString()}`, $page.params.organization, - Region.Default + Region.Fra // default ); trackEvent(Submit.ProjectCreate, { teamId: $page.params.organization diff --git a/src/routes/(console)/organization-[organization]/createProject.svelte b/src/routes/(console)/organization-[organization]/createProject.svelte index 363ba9917..1f6ba1917 100644 --- a/src/routes/(console)/organization-[organization]/createProject.svelte +++ b/src/routes/(console)/organization-[organization]/createProject.svelte @@ -7,7 +7,7 @@ import { InputText, Button, FormList } from '$lib/elements/forms'; import { addNotification } from '$lib/stores/notifications'; import { sdk } from '$lib/stores/sdk'; - import { ID, Region } from '@appwrite.io/console'; + import { ID } from '@appwrite.io/console'; import { createEventDispatcher } from 'svelte'; export let show = false; @@ -24,12 +24,7 @@ async function create() { try { disabled = true; - const project = await sdk.forConsole.projects.create( - id ?? ID.unique(), - name, - teamId, - Region.Default - ); + const project = await sdk.forConsole.projects.create(id ?? ID.unique(), name, teamId); show = false; dispatch('created', project); trackEvent(Submit.ProjectCreate, {