Skip to content

Commit 756eee8

Browse files
committed
fix: triggers bug
1 parent f03e2c7 commit 756eee8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

shared/api/triggers.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ module.exports = {
88
if (!isFunction) {
99
cronTriggersUrl = `crons?container_id=${applicationId}`;
1010
}
11+
1112
const cronTriggers = await this.apiManager
1213
.get(cronTriggersUrl)
1314
.then((response) => response.data.crons)
1415
.catch(manageError);
1516

17+
let messageTriggersUrl = `triggers?function_id=${applicationId}`;
18+
if (!isFunction) {
19+
messageTriggersUrl = `triggers?container_id=${applicationId}`;
20+
}
21+
1622
const messageTriggers = await this.apiManager
17-
.get(`triggers?function_id=${applicationId}`)
23+
.get(messageTriggersUrl)
1824
.then((response) => response.data.triggers)
1925
.catch(manageError);
2026

0 commit comments

Comments
 (0)