update log output

This commit is contained in:
davidwells 2018-06-11 18:15:54 -07:00
parent 18d03002cb
commit c404e856cf
5 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ const client = new faunadb.Client({
exports.handler = (event, context, callback) => {
const data = JSON.parse(event.body)
const id = event.path.replace(/\/\.netlify\/functions\/todos-update\//, "")
console.log("update todo", id)
console.log(`Function 'todo-update' invoked. update id: ${id}`)
return client.query(q.Update(q.Ref(`classes/todos/${id}`), {data}))
.then((response) => {
console.log("success", response)