Move every Checklists.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 00:33:39 +01:00
parent 3fc9c6efe7
commit bf27ffb92e
3 changed files with 5 additions and 5 deletions

View file

@ -338,7 +338,7 @@ RulesHelper = {
sort: 0,
});
const itemsArray = action.checklistItems.split(',');
const checkList = Checklists.findOne({ _id: checkListId });
const checkList = ReactiveCache.getChecklist(checkListId);
for (let i = 0; i < itemsArray.length; i++) {
ChecklistItems.insert({
title: itemsArray[i],