mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
refactor: add typesafety to TaskContext
This commit is contained in:
@@ -116,7 +116,7 @@ function importAttachmentsToNote(req: Request) {
|
||||
}
|
||||
|
||||
const parentNote = becca.getNoteOrThrow(parentNoteId);
|
||||
const taskContext = TaskContext.getInstance(taskId, "importAttachment", options);
|
||||
const taskContext = TaskContext.getInstance(taskId, "importNotes", options);
|
||||
|
||||
// unlike in note import, we let the events run, because a huge number of attachments is not likely
|
||||
|
||||
|
||||
Reference in New Issue
Block a user