mirror of
https://github.com/wekan/wekan.git
synced 2026-02-10 18:24:21 +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
|
|
@ -5,7 +5,7 @@ Meteor.methods({
|
|||
check(swimlaneId, String);
|
||||
check(toBoardId, String);
|
||||
|
||||
const swimlane = Swimlanes.findOne(swimlaneId);
|
||||
const swimlane = ReactiveCache.getSwimlane(swimlaneId);
|
||||
const toBoard = ReactiveCache.getBoard(toBoardId);
|
||||
|
||||
if (swimlane && toBoard) {
|
||||
|
|
@ -20,7 +20,7 @@ Meteor.methods({
|
|||
check(swimlaneId, String);
|
||||
check(toBoardId, String);
|
||||
|
||||
const swimlane = Swimlanes.findOne(swimlaneId);
|
||||
const swimlane = ReactiveCache.getSwimlane(swimlaneId);
|
||||
const toBoard = ReactiveCache.getBoard(toBoardId);
|
||||
|
||||
if (swimlane && toBoard) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue