I am trying the below function just to see the fulfillment of the amazon lex using lambda, but it says callback is not a function.
'use strict';
module.exports.intent =(event, callback) => {
callback(null, {
dialogAction:{
type:"Close",
FulfilmentStatement:"fulfilled ",
message:{
contextType:"PlaintText",
content:"your deadline is today"
}
}
} );
};