update exports

This commit is contained in:
davidwells 2018-06-11 16:39:45 -07:00
parent 55f2fc378c
commit 2600c6f38c
5 changed files with 6 additions and 6 deletions

View file

@ -7,8 +7,8 @@ const client = new faunadb.Client({
secret: process.env.FAUNADB_SECRET
});
module.exports = (event, callback) => {
console.log("readOne todo "+event.pathParameters.id);
exports.handler = (event, context, callback) => {
console.log(`readOne todo ${event.pathParameters.id}`);
return client.query(q.Get(q.Ref("classes/todos/"+event.pathParameters.id)))
.then((response) => {
console.log("success", response);