Website edit functionality.

This commit is contained in:
Mike Cao committed 2020-08-07 02:27:12 -07:00
1 parent 30b87bc4c4
commit 00e232fee8
63 files changed
+301 -94

No files matched your search

+14
View File
@@ -56,6 +56,20 @@ export async function getWebsites(user_id) {
where: {
user_id,
},
orderBy: {
name: 'asc',
},
}),
);
}
export async function updateWebsite(website_id, data) {
return runQuery(
prisma.website.update({
where: {
website_id,
},
data,
}),
);
}