server: Fix import of notes with type=file

This commit is contained in:
Elian Doran
2024-07-13 16:52:31 +03:00
parent 1b0690ddfc
commit d99cc11d8b
4 changed files with 4 additions and 8 deletions

View File

@@ -500,10 +500,6 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
}
}
else {
if (typeof content !== "string") {
throw new Error("Incorrect content type.");
}
({note} = noteService.createNewNote({
parentNoteId: parentNoteId,
title: noteTitle || "",