umami/queries/admin/website/updateWebsite.js
2022-08-25 22:20:30 -07:00

13 lines
226 B
JavaScript

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