improved a lot of things

This commit is contained in:
SinachPat
2026-04-29 04:07:16 +01:00
parent 960646fee3
commit 050c4ce7fe
36 changed files with 856 additions and 226 deletions
+8
View File
@@ -267,6 +267,14 @@ export async function removeTeamMember(
if (error) throw new Error(error.message);
}
export async function deleteWorkspace(db: DbClient, id: string): Promise<void> {
const { error } = await (db
.from('workspaces')
.delete()
.eq('id', id) as unknown as Promise<{ data: unknown; error: DbError | null }>);
if (error) throw new Error(error.message);
}
export async function updateWorkspace(
db: DbClient,
id: string,