mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Cards.findOne() to the ReactiveCache
This commit is contained in:
parent
a182482cfb
commit
3b65113d05
24 changed files with 96 additions and 87 deletions
|
|
@ -1,4 +1,4 @@
|
|||
//var nodemailer = require('nodemailer');
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
|
||||
RulesHelper = {
|
||||
executeRules(activity) {
|
||||
|
|
@ -58,7 +58,7 @@ RulesHelper = {
|
|||
return matchingMap;
|
||||
},
|
||||
performAction(activity, action) {
|
||||
const card = Cards.findOne({ _id: activity.cardId });
|
||||
const card = ReactiveCache.getCard(activity.cardId);
|
||||
const boardId = activity.boardId;
|
||||
if (
|
||||
action.actionType === 'moveCardToTop' ||
|
||||
|
|
@ -376,7 +376,7 @@ RulesHelper = {
|
|||
}
|
||||
if (action.actionType === 'linkCard') {
|
||||
const list = Lists.findOne({ title: action.listName, boardId: action.boardId });
|
||||
const card = Cards.findOne({ _id: activity.cardId });
|
||||
const card = ReactiveCache.getCard(activity.cardId);
|
||||
let listId = '';
|
||||
let swimlaneId = '';
|
||||
const swimlane = Swimlanes.findOne({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue