Added website check for cloud.
This commit is contained in:
1 parent
ed013d5d58
commit
03adb6b7e1
4 files changed
+32
-65
No files matched your search
@@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user