From 606490a611c95bec1ee737887cad7a2344e79d0a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 13 Jul 2024 16:55:20 +0300 Subject: [PATCH] server: Remove log and fix whitespace --- src/services/import/zip.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/import/zip.ts b/src/services/import/zip.ts index f8391350b..0c4008ddf 100644 --- a/src/services/import/zip.ts +++ b/src/services/import/zip.ts @@ -231,7 +231,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo if (!parentNoteId) { throw new Error("Missing parent note ID."); } - + const {note} = noteService.createNewNote({ parentNoteId: parentNoteId, title: noteTitle || "", @@ -462,14 +462,13 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo } let type = resolveNoteType(noteMeta?.type); - console.log("Resolved note type is ", noteMeta?.type, resolveNoteType(noteMeta?.type)); if (type !== 'file' && type !== 'image') { content = content.toString("utf-8"); } const noteTitle = utils.getNoteTitle(filePath, taskContext.data?.replaceUnderscoresWithSpaces || false, noteMeta); - + content = processNoteContent(noteMeta, type, mime, content, noteTitle || "", filePath); let note = becca.getNote(noteId);