Added website check for cloud.

This commit is contained in:
Mike Cao
2025-10-04 00:38:10 -07:00
parent ed013d5d58
commit 03adb6b7e1
4 changed files with 32 additions and 65 deletions

View File

@@ -203,3 +203,11 @@ export async function deleteWebsite(websiteId: string) {
return data;
});
}
export async function getWebsiteCount(userId: string) {
return prisma.client.website.count({
where: {
userId,
},
});
}