refactor: add typesafety to TaskContext

This commit is contained in:
Elian Doran
2025-09-13 13:44:23 +03:00
parent 777d5ab3b7
commit 9c8b0611ea
21 changed files with 111 additions and 75 deletions

View File

@@ -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