Files
sendou.ink/scripts/vacuum-db.ts
Kalle e9beb092ad
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
Vacuum DB routine
2026-08-21 22:29:26 +03:00

10 lines
284 B
TypeScript

import { ServerConfig } from "~/config.server";
import { VacuumDatabaseRoutine } from "~/routines/vacuumDatabase";
import { logger } from "~/utils/logger";
logger.info(
`Vacuuming ${ServerConfig.dbPath}, writes are blocked until it finishes`,
);
await VacuumDatabaseRoutine.run();