We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03e2c7 commit 756eee8Copy full SHA for 756eee8
shared/api/triggers.js
@@ -8,13 +8,19 @@ module.exports = {
8
if (!isFunction) {
9
cronTriggersUrl = `crons?container_id=${applicationId}`;
10
}
11
+
12
const cronTriggers = await this.apiManager
13
.get(cronTriggersUrl)
14
.then((response) => response.data.crons)
15
.catch(manageError);
16
17
+ let messageTriggersUrl = `triggers?function_id=${applicationId}`;
18
+ if (!isFunction) {
19
+ messageTriggersUrl = `triggers?container_id=${applicationId}`;
20
+ }
21
22
const messageTriggers = await this.apiManager
- .get(`triggers?function_id=${applicationId}`)
23
+ .get(messageTriggersUrl)
24
.then((response) => response.data.triggers)
25
26
0 commit comments