umami/queries/admin/website/updateWebsite.js
2022-08-27 21:38:35 -07:00

11 lines
186 B
JavaScript

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