mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 14:48:48 +01:00
Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)
This commit is contained in:
parent
9022e9949f
commit
a182482cfb
37 changed files with 166 additions and 127 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
|
||||
CustomFields = new Mongo.Collection('customFields');
|
||||
|
||||
/**
|
||||
|
|
@ -363,7 +365,7 @@ if (Meteor.isServer) {
|
|||
) {
|
||||
const paramBoardId = req.params.boardId;
|
||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||
const board = Boards.findOne({ _id: paramBoardId });
|
||||
const board = ReactiveCache.getBoard(paramBoardId);
|
||||
const id = CustomFields.direct.insert({
|
||||
name: req.body.name,
|
||||
type: req.body.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue