mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 22:28:49 +01:00
Move every Triggers.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
c7b554afd9
commit
d6142e4b75
4 changed files with 7 additions and 7 deletions
|
|
@ -674,7 +674,7 @@ Boards.helpers({
|
|||
actionsMap[id] = Actions.insert(action);
|
||||
});
|
||||
const triggersMap = {};
|
||||
Triggers.find({ boardId: oldId }).forEach(trigger => {
|
||||
ReactiveCache.getTriggers({ boardId: oldId }).forEach(trigger => {
|
||||
const id = trigger._id;
|
||||
delete trigger._id;
|
||||
trigger.boardId = _id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue