Fix deleted website visibility bug

Closes #3865
This commit is contained in:
Francis Cao committed 2025-12-19 14:21:42 -08:00
1 parent 3072f02f1b
commit 912d2d544d
4 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ export async function setWebsiteDate(websiteId: string, userId: string, data: Re
const website = await fetchWebsite(websiteId);
const cloudMode = !!process.env.CLOUD_MODE;
if (cloudMode && !website.teamId) {
if (cloudMode && website && !website.teamId) {
const account = await fetchAccount(userId);
if (!account?.hasSubscription) {