mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
markdown wiki reference on README
This commit is contained in:
@@ -15,6 +15,10 @@ async function importToBranch(req) {
|
||||
const parentNoteId = req.params.parentNoteId;
|
||||
const file = req.file;
|
||||
|
||||
if (file) {
|
||||
return [400, "No file has been uploaded"];
|
||||
}
|
||||
|
||||
const parentNote = await repository.getNote(parentNoteId);
|
||||
|
||||
if (!parentNote) {
|
||||
|
||||
Reference in New Issue
Block a user