Update todos-create.js

This commit is contained in:
David Wells 2018-08-30 10:20:30 -07:00 committed by GitHub
parent d390d662a9
commit a1fbcced32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ const client = new faunadb.Client({
exports.handler = (event, context, callback) => { exports.handler = (event, context, callback) => {
/* parse the string body into a useable JS object */ /* parse the string body into a useable JS object */
const data = JSON.parse(event.body) const data = JSON.parse(event.body)
console.log("Function `todo-create` invoked", data) console.log("Hello webinar. Function `todo-create` invoked", data)
const todoItem = { const todoItem = {
data: data data: data
} }