mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
Move every Swimlanes.findOne() to the ReactiveCache
This commit is contained in:
parent
2f2aa7b08a
commit
bf48d4371c
6 changed files with 11 additions and 12 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue