mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server: Remove log and fix whitespace
This commit is contained in:
parent
d99cc11d8b
commit
606490a611
@ -231,7 +231,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
|||||||
if (!parentNoteId) {
|
if (!parentNoteId) {
|
||||||
throw new Error("Missing parent note ID.");
|
throw new Error("Missing parent note ID.");
|
||||||
}
|
}
|
||||||
|
|
||||||
const {note} = noteService.createNewNote({
|
const {note} = noteService.createNewNote({
|
||||||
parentNoteId: parentNoteId,
|
parentNoteId: parentNoteId,
|
||||||
title: noteTitle || "",
|
title: noteTitle || "",
|
||||||
@ -462,14 +462,13 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
|||||||
}
|
}
|
||||||
|
|
||||||
let type = resolveNoteType(noteMeta?.type);
|
let type = resolveNoteType(noteMeta?.type);
|
||||||
console.log("Resolved note type is ", noteMeta?.type, resolveNoteType(noteMeta?.type));
|
|
||||||
|
|
||||||
if (type !== 'file' && type !== 'image') {
|
if (type !== 'file' && type !== 'image') {
|
||||||
content = content.toString("utf-8");
|
content = content.toString("utf-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
const noteTitle = utils.getNoteTitle(filePath, taskContext.data?.replaceUnderscoresWithSpaces || false, noteMeta);
|
const noteTitle = utils.getNoteTitle(filePath, taskContext.data?.replaceUnderscoresWithSpaces || false, noteMeta);
|
||||||
|
|
||||||
content = processNoteContent(noteMeta, type, mime, content, noteTitle || "", filePath);
|
content = processNoteContent(noteMeta, type, mime, content, noteTitle || "", filePath);
|
||||||
|
|
||||||
let note = becca.getNote(noteId);
|
let note = becca.getNote(noteId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user