Restore missing await in VACUUM query (#2140)

This commit is contained in:
Iván Ovejero 2021-08-27 18:22:57 +02:00 committed by GitHub
parent fb71324a53
commit 7ea515c840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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