mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
14 lines
240 B
JavaScript
14 lines
240 B
JavaScript
import { runQuery } from 'queries';
|
|
import prisma from 'lib/db';
|
|
|
|
export async function updateWebsite(website_id, data) {
|
|
return runQuery(
|
|
prisma.website.update({
|
|
where: {
|
|
website_id,
|
|
},
|
|
data,
|
|
}),
|
|
);
|
|
}
|