Move every CardComments.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 17:11:56 +01:00
parent 806ad78637
commit 92733b24d1
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ if (Meteor.isServer) {
const newComment = data.comment;
if (paramCardId && paramBoardId && newComment) {
// only process data with the cardid, boardid and comment text, TODO can expand other functions here to react on returned data
const comment = CardComments.findOne({
const comment = ReactiveCache.getCardComment({
_id: paramCommentId,
cardId: paramCardId,
boardId: paramBoardId,