From 5f49d71b8b9541ef36e89ba6690d27553948e5c2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 7 Dec 2022 18:09:17 +0000 Subject: [PATCH] Adding back compaction. --- packages/server/src/api/controllers/deploy/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/server/src/api/controllers/deploy/index.ts b/packages/server/src/api/controllers/deploy/index.ts index 9b80af889c..209aedfb62 100644 --- a/packages/server/src/api/controllers/deploy/index.ts +++ b/packages/server/src/api/controllers/deploy/index.ts @@ -118,6 +118,8 @@ async function deployApp(deployment: any, userId: string) { } replication = new dbCore.Replication(config) const devDb = context.getDevAppDB() + console.log("Compacting development DB") + await devDb.compact() console.log("Replication object created") await replication.replicate(replication.appReplicateOpts()) console.log("replication complete.. replacing app meta doc")