Updates for cloud mode.
This commit is contained in:
1 parent
dc1736458b
commit
f40e1b44f3
51 files changed
+251
-173
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user