Skip to content

Commit 5ffd0e2

Browse files
committed
Added more descriptors to the trigger
1 parent 4c4e1d7 commit 5ffd0e2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

component.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@
3030
"consume": {
3131
"title": "Consume",
3232
"main": "./lib/actions/consume.js",
33+
"fields": {
34+
"topic": {
35+
"label": "Exchange",
36+
"viewClass": "TextFieldView",
37+
"required": true,
38+
"placeholder": "up_to_200_symbols"
39+
},
40+
"bindingKey": {
41+
"label": "Binding Key",
42+
"viewClass": "TextFieldWithNoteView",
43+
"required": false,
44+
"placeholder": "dot.delimited.words",
45+
"note": "Please use <b>bold</b> and <a href=\"\">links</a> here."
46+
}
47+
},
3348
"metadata": {
3449
"in": {},
3550
"out": "./lib/schemas/consume.out.json"

lib/triggers/consume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports.process = processAction;
1717
function processAction(msg, cfg) {
1818
console.log('Trigger started, cfg=%j', cfg);
1919
const amqpURI = cfg.amqpURI;
20-
const amqpExchange = cfg.topc;
20+
const amqpExchange = cfg.topic;
2121

2222
co(function*() {
2323
if (!conn) {

0 commit comments

Comments
 (0)