From 7ea515c8401daf6d61e689fc4765ed6e6b234222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 27 Aug 2021 18:22:57 +0200 Subject: [PATCH] :zap: Restore missing await in VACUUM query (#2140) --- packages/cli/commands/start.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/commands/start.ts b/packages/cli/commands/start.ts index d2dbfe5a97..ea84064584 100644 --- a/packages/cli/commands/start.ts +++ b/packages/cli/commands/start.ts @@ -240,7 +240,7 @@ export class Start extends Command { if (dbType === 'sqlite') { const shouldRunVacuum = config.get('database.sqlite.executeVacuumOnStartup') as number; if (shouldRunVacuum) { - Db.collections.Execution!.query('VACUUM;'); + await Db.collections.Execution!.query('VACUUM;'); } }