fix linting

This commit is contained in:
2025-06-07 15:40:52 -06:00
parent d5501d9db1
commit b2628c467f
6 changed files with 45 additions and 31 deletions

View File

@@ -31,9 +31,8 @@ export class MigrationService {
sqlQuery: (sql: string) => Promise<T>,
extractMigrationNames: (result: T) => Set<string>,
): Promise<void> {
// Create migrations table if it doesn't exist
const result0 = await sqlExec(`
await sqlExec(`
CREATE TABLE IF NOT EXISTS migrations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL UNIQUE,
@@ -45,7 +44,6 @@ export class MigrationService {
const result1: T = await sqlQuery("SELECT name FROM migrations;");
const executedMigrations = extractMigrationNames(result1);
// Run pending migrations in order
for (const migration of this.migrations) {
if (!executedMigrations.has(migration.name)) {
@@ -54,7 +52,6 @@ export class MigrationService {
await sqlExec(
`INSERT INTO migrations (name) VALUES ('${migration.name}')`,
);
}
}
}