@@ -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({
website_id,
data,
The note is not visible to the blocked user.