fix: tests.

This commit is contained in:
Darshan
2025-04-15 18:25:58 +05:30
parent 7cf1153327
commit 7d1e9af38e
2 changed files with 3 additions and 8 deletions
@@ -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
@@ -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, {