mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
chore(server): fix a few more type errors
This commit is contained in:
@@ -14,7 +14,7 @@ const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
async function testImport(fileName: string, mimetype: string) {
|
||||
const buffer = fs.readFileSync(path.join(scriptDir, "samples", fileName));
|
||||
const taskContext = TaskContext.getInstance("import-mdx", "import", {
|
||||
const taskContext = TaskContext.getInstance("import-mdx", "importNotes", {
|
||||
textImportedAsText: true,
|
||||
codeImportedAsCode: true
|
||||
});
|
||||
|
||||
@@ -14,7 +14,7 @@ const scriptDir = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
async function testImport(fileName: string) {
|
||||
const mdxSample = fs.readFileSync(path.join(scriptDir, "samples", fileName));
|
||||
const taskContext = TaskContext.getInstance("import-mdx", "import", {
|
||||
const taskContext = TaskContext.getInstance("import-mdx", "importNotes", {
|
||||
textImportedAsText: true
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user