mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Renamed id routes for API.
This commit is contained in:
parent
53a991176b
commit
4429198397
42 changed files with 154 additions and 170 deletions
|
|
@ -50,6 +50,17 @@ export async function createTeamUser(
|
|||
});
|
||||
}
|
||||
|
||||
export async function updateTeamUser(teamUserId: string, data: any): Promise<TeamUser> {
|
||||
return prisma.client.teamUser.update(
|
||||
{
|
||||
where: {
|
||||
id: teamUserId,
|
||||
},
|
||||
},
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
export async function deleteTeamUser(teamId: string, userId: string): Promise<TeamUser> {
|
||||
const { client } = prisma;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue