Fix the examples and use the same names

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-25 12:08:04 -03:00
parent e1b04bdcdb
commit 852cad0832
1 changed files with 2 additions and 2 deletions

View File

@ -23,10 +23,10 @@ app.post('/', function (req, res) {
console.log(req.body);
unmarshaller.unmarshall(req.body, req.headers)
.then(event => {
.then(cloudevent => {
// pretty print
console.log("Accepted event:");
console.log(JSON.stringify(event.format(), null, 2));
console.log(JSON.stringify(cloudevent.format(), null, 2));
res.status(201)
.send("Event Accepted");