mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Move every Checklists.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
92733b24d1
commit
5552c17eba
3 changed files with 7 additions and 7 deletions
|
|
@ -141,7 +141,7 @@ Checklists.helpers({
|
|||
});
|
||||
},
|
||||
itemIndex(itemId) {
|
||||
const items = self.findOne({ _id: this._id }).items;
|
||||
const items = ReactiveCache.getChecklist({ _id: this._id }).items;
|
||||
return _.pluck(items, '_id').indexOf(itemId);
|
||||
},
|
||||
});
|
||||
|
|
@ -306,7 +306,7 @@ if (Meteor.isServer) {
|
|||
const paramChecklistId = req.params.checklistId;
|
||||
const paramCardId = req.params.cardId;
|
||||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||
const checklist = Checklists.findOne({
|
||||
const checklist = ReactiveCache.getChecklist({
|
||||
_id: paramChecklistId,
|
||||
cardId: paramCardId,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue