mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Clean up teams on user delete.
This commit is contained in:
parent
82f0bc3d2b
commit
8684781624
8 changed files with 90 additions and 14 deletions
|
|
@ -37,3 +37,11 @@ export async function createTeamWebsite(
|
|||
},
|
||||
});
|
||||
}
|
||||
|
||||
export async function deleteTeamWebsite(teamWebsiteId: string): Promise<TeamWebsite> {
|
||||
return prisma.client.teamWebsite.delete({
|
||||
where: {
|
||||
id: teamWebsiteId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue