From ffef771596bac3778cbbf6f75fffcc9d5ced799e Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Wed, 23 Jul 2025 23:37:30 -0500 Subject: [PATCH] Fix team deletion --- src/actions.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/actions.ts b/src/actions.ts index fece858..37b0af1 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -945,12 +945,8 @@ export const actions: { [k: string]: QueryHandler } = { if (team.ownerid !== this.user.id) { throw new ActionError(`You cannot delete that team, as it is not yours.`); } - try { - await tables.teams.delete(teamid); - return {success: true}; - } catch { - return {success: false}; - } + await tables.teams.deleteAll()`WHERE teamid = ${teamid}`; + return {success: true}; }, async copyteam(params) { let { teamid, password } = params;