update log output
This commit is contained in:
parent
18d03002cb
commit
c404e856cf
5 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ const client = new faunadb.Client({
|
|||
|
||||
exports.handler = (event, context, callback) => {
|
||||
const id = event.path.replace(/\/\.netlify\/functions\/todos-read\//, "")
|
||||
console.log(`readOne todo ${id}`)
|
||||
console.log(`Function 'todo-read' invoked. Read id: ${id}`)
|
||||
return client.query(q.Get(q.Ref(`classes/todos/${id}`)))
|
||||
.then((response) => {
|
||||
console.log("success", response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue