umami/queries/admin/website/updateWebsite.js
2022-07-12 15:14:27 -07:00

14 lines
244 B
JavaScript

import { runQuery } from 'lib/queries';
import prisma from 'lib/db';
export async function updateWebsite(website_id, data) {
return runQuery(
prisma.website.update({
where: {
website_id,
},
data,
}),
);
}