Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(bulk_action): fix type error
Elian Doran8f393d0baed9
diff --git a/apps/server/src/services/bulk_actions.ts b/apps/server/src/services/bulk_actions.tsindex 5b2574156d..531bd9976e 100644--- a/apps/server/src/services/bulk_actions.ts+++ b/apps/server/src/services/bulk_actions.ts@@ -162,9 +162,8 @@ function executeActions(actions: BulkAction[], noteIds: string[] | Set<string>)try {log.info(`Applying action handler to note ${resultNote.noteId}: ${JSON.stringify(action)}`);- const handler = ACTION_HANDLERS[action.name];- //@ts-ignore- handler(action as BulkAction, resultNote);+ const handler = ACTION_HANDLERS[action.name] as (a: typeof action, n: BNote) => void;+ handler(action, resultNote);} catch (e: any) {log.error(`ExecuteScript search action failed with ${e.message}`);}