mirror of
https://github.com/wekan/wekan.git
synced 2026-01-23 09:46:09 +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,4 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Picker } from 'meteor/communitypackages:picker';
|
||||
|
||||
|
|
@ -215,7 +216,7 @@ if (isSandstorm && Meteor.isServer) {
|
|||
const comment = CardComments.findOne(doc.commentId);
|
||||
caption = { defaultText: comment.text };
|
||||
const activeMembers = _.pluck(
|
||||
Boards.findOne(sandstormBoard._id).activeMembers(),
|
||||
ReactiveCache.getBoard(sandstormBoard._id).activeMembers(),
|
||||
'userId',
|
||||
);
|
||||
(comment.text.match(/\B@([\w.]*)/g) || []).forEach(username => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue