mirror of
https://github.com/zadam/trilium.git
synced 2025-10-24 23:07:13 +08:00
refactor(bulk_action): fix type error
This commit is contained in:
parent
94dad49e2f
commit
8f393d0bae
1 changed files with 2 additions and 3 deletions
|
|
@ -162,9 +162,8 @@ function executeActions(actions: BulkAction[], noteIds: string[] | Set<string>)
|
||||||
try {
|
try {
|
||||||
log.info(`Applying action handler to note ${resultNote.noteId}: ${JSON.stringify(action)}`);
|
log.info(`Applying action handler to note ${resultNote.noteId}: ${JSON.stringify(action)}`);
|
||||||
|
|
||||||
const handler = ACTION_HANDLERS[action.name];
|
const handler = ACTION_HANDLERS[action.name] as (a: typeof action, n: BNote) => void;
|
||||||
//@ts-ignore
|
handler(action, resultNote);
|
||||||
handler(action as BulkAction, resultNote);
|
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
log.error(`ExecuteScript search action failed with ${e.message}`);
|
log.error(`ExecuteScript search action failed with ${e.message}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue