Move every Swimlanes.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-01-15 00:07:17 +01:00
parent 2f2aa7b08a
commit bf48d4371c
6 changed files with 11 additions and 12 deletions

View file

@ -2688,7 +2688,7 @@ function cardMove(
oldBoardId,
oldBoardName: ReactiveCache.getBoard(oldBoardId).title,
cardId: doc._id,
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
swimlaneId: doc.swimlaneId,
oldSwimlaneId,
});
@ -2705,7 +2705,7 @@ function cardMove(
boardId: doc.boardId,
cardId: doc._id,
cardTitle: doc.title,
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
swimlaneId: doc.swimlaneId,
oldSwimlaneId,
});
@ -2917,7 +2917,7 @@ function cardCreation(userId, doc) {
listId: doc.listId,
cardId: doc._id,
cardTitle: doc.title,
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
swimlaneId: doc.swimlaneId,
});
}