mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Rules.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
0c58bcf99c
commit
30c1b5cca8
4 changed files with 4 additions and 4 deletions
|
@ -680,7 +680,7 @@ Boards.helpers({
|
||||||
trigger.boardId = _id;
|
trigger.boardId = _id;
|
||||||
triggersMap[id] = Triggers.insert(trigger);
|
triggersMap[id] = Triggers.insert(trigger);
|
||||||
});
|
});
|
||||||
Rules.find({ boardId: oldId }).forEach(rule => {
|
ReactiveCache.getRules({ boardId: oldId }).forEach(rule => {
|
||||||
delete rule._id;
|
delete rule._id;
|
||||||
rule.boardId = _id;
|
rule.boardId = _id;
|
||||||
rule.actionId = actionsMap[rule.actionId];
|
rule.actionId = actionsMap[rule.actionId];
|
||||||
|
|
|
@ -106,7 +106,7 @@ export class Exporter {
|
||||||
);
|
);
|
||||||
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
||||||
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
||||||
result.rules = Rules.find(byBoard, noBoardId).fetch();
|
result.rules = ReactiveCache.getRules(byBoard, noBoardId);
|
||||||
result.checklists = [];
|
result.checklists = [];
|
||||||
result.checklistItems = [];
|
result.checklistItems = [];
|
||||||
result.subtaskItems = [];
|
result.subtaskItems = [];
|
||||||
|
|
|
@ -57,7 +57,7 @@ class ExporterCardPDF {
|
||||||
);
|
);
|
||||||
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
||||||
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
||||||
result.rules = Rules.find(byBoard, noBoardId).fetch();
|
result.rules = ReactiveCache.getRules(byBoard, noBoardId);
|
||||||
result.checklists = [];
|
result.checklists = [];
|
||||||
result.checklistItems = [];
|
result.checklistItems = [];
|
||||||
result.subtaskItems = [];
|
result.subtaskItems = [];
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ExporterExcel {
|
||||||
);
|
);
|
||||||
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
||||||
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
||||||
result.rules = Rules.find(byBoard, noBoardId).fetch();
|
result.rules = ReactiveCache.getRules(byBoard, noBoardId);
|
||||||
result.checklists = [];
|
result.checklists = [];
|
||||||
result.checklistItems = [];
|
result.checklistItems = [];
|
||||||
result.subtaskItems = [];
|
result.subtaskItems = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue