Move every Integrations.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)

This commit is contained in:
Martin Filser 2023-03-12 18:25:03 +01:00
parent a423f7883e
commit 286617e7be
2 changed files with 8 additions and 4 deletions

View file

@ -2,9 +2,13 @@ import { ReactiveCache } from '/imports/reactiveCache';
Meteor.publish('globalwebhooks', () => {
const boardId = Integrations.Const.GLOBAL_WEBHOOK_ID;
const ret = Integrations.find({
boardId,
});
const ret = ReactiveCache.getIntegrations(
{
boardId,
},
{},
true,
);
return ret;
});
Meteor.publish('setting', () => {