mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Integrations.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)
This commit is contained in:
parent
ebb356cf2d
commit
26e326a204
2 changed files with 4 additions and 3 deletions
|
@ -197,11 +197,11 @@ BlazeComponent.extendComponent({
|
|||
url: '',
|
||||
};
|
||||
|
||||
const integrations = Integrations.find({
|
||||
const integrations = ReactiveCache.getIntegrations({
|
||||
boardId: { $in: [card.boardId, Integrations.Const.GLOBAL_WEBHOOK_ID] },
|
||||
enabled: true,
|
||||
activities: { $in: ['CardDetailsRendered', 'all'] },
|
||||
}).fetch();
|
||||
});
|
||||
|
||||
if (integrations.length > 0) {
|
||||
integrations.forEach((integration) => {
|
||||
|
|
|
@ -426,7 +426,8 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
integrations() {
|
||||
const boardId = this.boardId();
|
||||
return Integrations.find({ boardId: `${boardId}` }).fetch();
|
||||
const ret = ReactiveCache.getIntegrations({ boardId });
|
||||
return ret;
|
||||
},
|
||||
types() {
|
||||
return Integrations.Const.WEBHOOK_TYPES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue