refactor(migration): remove async import from migration scripts

This commit is contained in:
Elian Doran
2025-03-02 20:28:41 +02:00
parent b4310b5275
commit 16ad054d2a
2 changed files with 11 additions and 11 deletions

View File

@@ -1,3 +1,6 @@
import sql from "../../src/services/sql";
import utils from "../../src/services/utils";
interface NoteContentsRow {
noteId: string;
content: string | Buffer;
@@ -11,10 +14,7 @@ interface NoteRevisionContents {
utcDateModified: string;
}
export default async () => {
const sql = (await import("../../src/services/sql")).default;
const utils = (await import("../../src/services/utils")).default;
export default () => {
const existingBlobIds = new Set();
for (const noteId of sql.getColumn<string>(`SELECT noteId FROM note_contents`)) {