mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Actions.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
30c1b5cca8
commit
c7b554afd9
4 changed files with 7 additions and 7 deletions
|
|
@ -667,7 +667,7 @@ Boards.helpers({
|
||||||
|
|
||||||
// copy rules, actions, and triggers
|
// copy rules, actions, and triggers
|
||||||
const actionsMap = {};
|
const actionsMap = {};
|
||||||
Actions.find({ boardId: oldId }).forEach(action => {
|
ReactiveCache.getActions({ boardId: oldId }).forEach(action => {
|
||||||
const id = action._id;
|
const id = action._id;
|
||||||
delete action._id;
|
delete action._id;
|
||||||
action.boardId = _id;
|
action.boardId = _id;
|
||||||
|
|
|
||||||
|
|
@ -139,12 +139,12 @@ export class Exporter {
|
||||||
).fetch(),
|
).fetch(),
|
||||||
);
|
);
|
||||||
result.actions.push(
|
result.actions.push(
|
||||||
...Actions.find(
|
...ReactiveCache.getActions(
|
||||||
{
|
{
|
||||||
_id: rule.actionId,
|
_id: rule.actionId,
|
||||||
},
|
},
|
||||||
noBoardId,
|
noBoardId,
|
||||||
).fetch(),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,12 @@ class ExporterCardPDF {
|
||||||
).fetch(),
|
).fetch(),
|
||||||
);
|
);
|
||||||
result.actions.push(
|
result.actions.push(
|
||||||
...Actions.find(
|
...ReactiveCache.getActions(
|
||||||
{
|
{
|
||||||
_id: rule.actionId,
|
_id: rule.actionId,
|
||||||
},
|
},
|
||||||
noBoardId,
|
noBoardId,
|
||||||
).fetch(),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,12 +92,12 @@ class ExporterExcel {
|
||||||
).fetch(),
|
).fetch(),
|
||||||
);
|
);
|
||||||
result.actions.push(
|
result.actions.push(
|
||||||
...Actions.find(
|
...ReactiveCache.getActions(
|
||||||
{
|
{
|
||||||
_id: rule.actionId,
|
_id: rule.actionId,
|
||||||
},
|
},
|
||||||
noBoardId,
|
noBoardId,
|
||||||
).fetch(),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue