mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated save method for websites.
This commit is contained in:
parent
dcf16e1411
commit
2428314f58
3 changed files with 26 additions and 20 deletions
|
|
@ -1,10 +1,8 @@
|
|||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function updateWebsite(website_id, data) {
|
||||
export async function updateWebsite(data, where) {
|
||||
return prisma.client.website.update({
|
||||
where: {
|
||||
website_id,
|
||||
},
|
||||
where,
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue