fix migrations logging error

This commit is contained in:
2025-05-25 21:52:27 -06:00
parent 8b734e4ffb
commit bb0d8942b8
2 changed files with 125 additions and 118 deletions

View File

@@ -1,4 +1,4 @@
import logger from "@/utils/logger";
import { logger } from "@/utils/logger";
import { QueryExecResult } from "../interfaces/database";
interface Migration {
@@ -42,7 +42,7 @@ export class MigrationService {
const result: QueryExecResult[] = await sqlExec(
"SELECT name FROM migrations;",
);
let executedMigrations: Set<string> = new Set();
let executedMigrations: Set<unknown> = new Set();
// Even with that query, the QueryExecResult may be [] (which doesn't make sense to me).
if (result.length > 0) {
const singleResult = result[0];