update exports
This commit is contained in:
parent
55f2fc378c
commit
2600c6f38c
5 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue