mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +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
|
|
@ -48,10 +48,7 @@ export async function updateTeamUser(
|
|||
}
|
||||
|
||||
export async function deleteTeamUser(teamUserId: string): Promise<TeamUser> {
|
||||
return prisma.client.teamUser.update({
|
||||
data: {
|
||||
deletedAt: new Date(),
|
||||
},
|
||||
return prisma.client.teamUser.delete({
|
||||
where: {
|
||||
id: teamUserId,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue