mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
refactor(migration): remove async import from migration scripts
This commit is contained in:
@@ -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`)) {
|
||||
|
||||
Reference in New Issue
Block a user