Added website check for cloud.
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Create docker images / Build, push, and deploy (push) Has been cancelled

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,
},
});
}