mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Move every ChecklistItems.findOne() to the ReactiveCache
This commit is contained in:
parent
5e3a9dc059
commit
0e714a90e0
4 changed files with 26 additions and 3 deletions
|
|
@ -270,7 +270,7 @@ if (Meteor.isServer) {
|
|||
const paramBoardId = req.params.boardId;
|
||||
const paramItemId = req.params.itemId;
|
||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||
const checklistItem = ChecklistItems.findOne({ _id: paramItemId });
|
||||
const checklistItem = ReactiveCache.getChecklistItem(paramItemId);
|
||||
if (checklistItem) {
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue