mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Integrations.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
a423f7883e
commit
286617e7be
2 changed files with 8 additions and 4 deletions
|
|
@ -222,7 +222,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
||||||
function(boardId, board) {
|
function(boardId, board) {
|
||||||
this.cursor(ReactiveCache.getLists({ boardId, archived: isArchived }, {}, true));
|
this.cursor(ReactiveCache.getLists({ boardId, archived: isArchived }, {}, true));
|
||||||
this.cursor(ReactiveCache.getSwimlanes({ boardId, archived: isArchived }, {}, true));
|
this.cursor(ReactiveCache.getSwimlanes({ boardId, archived: isArchived }, {}, true));
|
||||||
this.cursor(Integrations.find({ boardId }));
|
this.cursor(ReactiveCache.getIntegrations({ boardId }, {}, true));
|
||||||
this.cursor(CardCommentReactions.find({ boardId }));
|
this.cursor(CardCommentReactions.find({ boardId }));
|
||||||
this.cursor(
|
this.cursor(
|
||||||
ReactiveCache.getCustomFields(
|
ReactiveCache.getCustomFields(
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,13 @@ import { ReactiveCache } from '/imports/reactiveCache';
|
||||||
|
|
||||||
Meteor.publish('globalwebhooks', () => {
|
Meteor.publish('globalwebhooks', () => {
|
||||||
const boardId = Integrations.Const.GLOBAL_WEBHOOK_ID;
|
const boardId = Integrations.Const.GLOBAL_WEBHOOK_ID;
|
||||||
const ret = Integrations.find({
|
const ret = ReactiveCache.getIntegrations(
|
||||||
boardId,
|
{
|
||||||
});
|
boardId,
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
true,
|
||||||
|
);
|
||||||
return ret;
|
return ret;
|
||||||
});
|
});
|
||||||
Meteor.publish('setting', () => {
|
Meteor.publish('setting', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue