mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +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
|
|
@ -112,12 +112,11 @@ export async function createUser(data: {
|
|||
});
|
||||
}
|
||||
|
||||
export async function updateUser(
|
||||
data: Prisma.UserUpdateInput,
|
||||
where: Prisma.UserWhereUniqueInput,
|
||||
): Promise<User> {
|
||||
export async function updateUser(userId: string, data: Prisma.UserUpdateInput): Promise<User> {
|
||||
return prisma.client.user.update({
|
||||
where,
|
||||
where: {
|
||||
id: userId,
|
||||
},
|
||||
data,
|
||||
select: {
|
||||
id: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue