mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Refactor API authentication.
This commit is contained in:
parent
c33729e185
commit
5a4fc96ebc
13 changed files with 71 additions and 73 deletions
|
|
@ -1,10 +1,8 @@
|
|||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function updateAccount(userId, data) {
|
||||
export async function updateAccount(data, where) {
|
||||
return prisma.client.account.update({
|
||||
where: {
|
||||
id: userId,
|
||||
},
|
||||
where,
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue