mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
add schema changes for TeamWebsite, update deleted logic for team tables
This commit is contained in:
parent
5f15ad0807
commit
5fd946cfde
5 changed files with 113 additions and 16 deletions
|
|
@ -61,10 +61,7 @@ export async function updateTeam(
|
|||
}
|
||||
|
||||
export async function deleteTeam(teamId: string): Promise<Team> {
|
||||
return prisma.client.team.update({
|
||||
data: {
|
||||
deletedAt: new Date(),
|
||||
},
|
||||
return prisma.client.team.delete({
|
||||
where: {
|
||||
id: teamId,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue