Skip to content

Instantly share code, notes, and snippets.

@desmondmorris
Created February 2, 2016 23:18
Show Gist options
  • Save desmondmorris/0ec18d8f8509f5e801d4 to your computer and use it in GitHub Desktop.
Save desmondmorris/0ec18d8f8509f5e801d4 to your computer and use it in GitHub Desktop.
module.exports = function (event) {
if (!event.name) return Promise.reject(new Error('You must supply a name.'))
return Promise.resolve(`Hello ${event.name}!`)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment