Skip to content

Commit 852cad0

Browse files
committed
Fix the examples and use the same names
Signed-off-by: Fabio José <[email protected]>
1 parent e1b04bd commit 852cad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/express-ex/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ app.post('/', function (req, res) {
2323
console.log(req.body);
2424

2525
unmarshaller.unmarshall(req.body, req.headers)
26-
.then(event => {
26+
.then(cloudevent => {
2727
// pretty print
2828
console.log("Accepted event:");
29-
console.log(JSON.stringify(event.format(), null, 2));
29+
console.log(JSON.stringify(cloudevent.format(), null, 2));
3030

3131
res.status(201)
3232
.send("Event Accepted");

0 commit comments

Comments
 (0)