Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)

This commit is contained in:
Martin Filser 2023-01-14 13:29:57 +01:00
parent 9022e9949f
commit a182482cfb
37 changed files with 166 additions and 127 deletions

View file

@ -1,3 +1,4 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { TAPi18n } from '/imports/i18n';
if (Meteor.isServer) {
@ -79,7 +80,7 @@ if (Meteor.isServer) {
cardId: paramCardId,
boardId: paramBoardId,
});
const board = Boards.findOne(paramBoardId);
const board = ReactiveCache.getBoard(paramBoardId);
const card = Cards.findOne(paramCardId);
if (board && card) {
if (comment) {