Skip to content

Instantly share code, notes, and snippets.

@rts-rob
Created September 9, 2017 10:09
Show Gist options
  • Save rts-rob/055700ff6e1eb8cd1f8904e5c7a5a32e to your computer and use it in GitHub Desktop.
Save rts-rob/055700ff6e1eb8cd1f8904e5c7a5a32e to your computer and use it in GitHub Desktop.
Send a MySQL query response back through the callback
const response = {
statusCode: 200,
body: JSON.stringify({
text: `Hi, ${requestingUser}.\nYour database has been reset!`
})
};
callback(null, response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment