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;'); } }