Updates for cloud mode.

This commit is contained in:
Mike Cao committed 2025-09-04 20:27:42 -07:00
1 parent dc1736458b
commit f40e1b44f3
51 files changed
+251 -173

No files matched your search

+2 -2
View File
@@ -159,7 +159,7 @@ export async function resetWebsite(
websiteId: string,
): Promise<[Prisma.BatchPayload, Prisma.BatchPayload, Website]> {
const { client, transaction } = prisma;
const cloudMode = !!process.env.cloudMode;
const cloudMode = !!process.env.CLOUD_URL;
return transaction([
client.eventData.deleteMany({
@@ -193,7 +193,7 @@ export async function deleteWebsite(
websiteId: string,
): Promise<[Prisma.BatchPayload, Prisma.BatchPayload, Website]> {
const { client, transaction } = prisma;
const cloudMode = !!process.env.CLOUD_MODE;
const cloudMode = !!process.env.CLOUD_URL;
return transaction([
client.eventData.deleteMany({