umami/queries/admin/website/updateWebsite.js
2022-07-15 16:47:38 -07:00

13 lines
218 B
JavaScript

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