Enable public website sharing.
This commit is contained in:
@@ -28,6 +28,16 @@ export async function getWebsiteByUuid(website_uuid) {
|
||||
);
|
||||
}
|
||||
|
||||
export async function getWebsiteByShareId(share_id) {
|
||||
return runQuery(
|
||||
prisma.website.findOne({
|
||||
where: {
|
||||
share_id,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function getUserWebsites(user_id) {
|
||||
return runQuery(
|
||||
prisma.website.findMany({
|
||||
|
||||
Reference in New Issue
Block a user