Updated save method for websites.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user