Updated save method for websites.

This commit is contained in:
Mike Cao 2022-10-07 17:13:03 -07:00
parent dcf16e1411
commit 2428314f58
3 changed files with 26 additions and 20 deletions

View file

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