mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 08:08:49 +01:00
Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)
This commit is contained in:
parent
9022e9949f
commit
a182482cfb
37 changed files with 166 additions and 127 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
|
||||
Meteor.methods({
|
||||
watch(watchableType, id, level) {
|
||||
check(watchableType, String);
|
||||
|
|
@ -9,7 +11,7 @@ Meteor.methods({
|
|||
let watchableObj = null;
|
||||
let board = null;
|
||||
if (watchableType === 'board') {
|
||||
watchableObj = Boards.findOne(id);
|
||||
watchableObj = ReactiveCache.getBoard(id);
|
||||
if (!watchableObj) throw new Meteor.Error('error-board-doesNotExist');
|
||||
board = watchableObj;
|
||||
} else if (watchableType === 'list') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue