server-ts: Convert routes/api/bulk_action

This commit is contained in:
Elian Doran
2024-04-05 20:36:10 +03:00
parent fd77c5e8c4
commit 40ef533c5f
4 changed files with 13 additions and 12 deletions

View File

@@ -150,7 +150,7 @@ function getActions(note: BNote) {
.filter(a => !!a);
}
function executeActions(note: BNote, searchResultNoteIds: string[]) {
function executeActions(note: BNote, searchResultNoteIds: string[] | Set<string>) {
const actions = getActions(note);
for (const resultNoteId of searchResultNoteIds) {