mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 08:20:12 +01: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: '',
|
url: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
const integrations = Integrations.find({
|
const integrations = ReactiveCache.getIntegrations({
|
||||||
boardId: { $in: [card.boardId, Integrations.Const.GLOBAL_WEBHOOK_ID] },
|
boardId: { $in: [card.boardId, Integrations.Const.GLOBAL_WEBHOOK_ID] },
|
||||||
enabled: true,
|
enabled: true,
|
||||||
activities: { $in: ['CardDetailsRendered', 'all'] },
|
activities: { $in: ['CardDetailsRendered', 'all'] },
|
||||||
}).fetch();
|
});
|
||||||
|
|
||||||
if (integrations.length > 0) {
|
if (integrations.length > 0) {
|
||||||
integrations.forEach((integration) => {
|
integrations.forEach((integration) => {
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,8 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
integrations() {
|
integrations() {
|
||||||
const boardId = this.boardId();
|
const boardId = this.boardId();
|
||||||
return Integrations.find({ boardId: `${boardId}` }).fetch();
|
const ret = ReactiveCache.getIntegrations({ boardId });
|
||||||
|
return ret;
|
||||||
},
|
},
|
||||||
types() {
|
types() {
|
||||||
return Integrations.Const.WEBHOOK_TYPES;
|
return Integrations.Const.WEBHOOK_TYPES;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue