Last active
April 17, 2018 21:42
-
-
Save jawa-the-hutt/aa410818aeb1e200695bfc51f4556b86 to your computer and use it in GitHub Desktop.
start-method.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async start() { | |
try{ | |
// make the connection async/await capable | |
return await asyncIt(cb => this.alexa.execute(cb)).then(result => { | |
this.context.log('result - ', result); | |
return { | |
status: 200, | |
body: result | |
}; | |
}); | |
} catch (e){ | |
return e; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment