mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every CustomFields.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
6646b8638e
commit
7ef8de50bd
3 changed files with 4 additions and 3 deletions
|
@ -225,9 +225,10 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
|||
this.cursor(Integrations.find({ boardId }));
|
||||
this.cursor(CardCommentReactions.find({ boardId }));
|
||||
this.cursor(
|
||||
CustomFields.find(
|
||||
ReactiveCache.getCustomFields(
|
||||
{ boardIds: { $in: [boardId] } },
|
||||
{ sort: { name: 1 } },
|
||||
true,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -789,7 +789,7 @@ function findCards(sessionId, query) {
|
|||
true,
|
||||
),
|
||||
ReactiveCache.getLists({ _id: { $in: lists } }, { fields }, true),
|
||||
CustomFields.find({ _id: { $in: customFieldIds } }),
|
||||
ReactiveCache.getCustomFields({ _id: { $in: customFieldIds } }, {}, true),
|
||||
ReactiveCache.getUsers({ _id: { $in: users } }, { fields: Users.safeFields }, true),
|
||||
Checklists.find({ cardId: { $in: cards.map(c => c._id) } }),
|
||||
ChecklistItems.find({ cardId: { $in: cards.map(c => c._id) } }),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Meteor.publish('customFields', function() {
|
||||
const ret = CustomFields.find();
|
||||
const ret = ReactiveCache.getCustomFields(null, null, true);
|
||||
return ret;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue