refactor(bulk_action): fix type error

This commit is contained in:
Elian Doran 2025-07-19 12:57:58 +03:00
parent 94dad49e2f
commit 8f393d0bae
No known key found for this signature in database

View File

@ -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}`);
}