mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
trigger execute bulk actions
This commit is contained in:
14
src/routes/api/bulk_action.js
Normal file
14
src/routes/api/bulk_action.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const becca = require("../../becca/becca");
|
||||
const bulkActionService = require("../../services/bulk_actions");
|
||||
|
||||
function execute(req) {
|
||||
const {noteIds} = req.body;
|
||||
|
||||
const bulkActionNote = becca.getNote('bulkaction');
|
||||
|
||||
bulkActionService.executeActions(bulkActionNote, noteIds);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
execute
|
||||
};
|
||||
Reference in New Issue
Block a user