update exports
This commit is contained in:
parent
55f2fc378c
commit
2600c6f38c
5 changed files with 6 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ const client = new faunadb.Client({
|
|||
secret: process.env.FAUNADB_SECRET
|
||||
});
|
||||
|
||||
module.exports = (event, callback) => {
|
||||
exports.handler = (event, context, callback) => {
|
||||
const data = JSON.parse(event.body);
|
||||
console.log("create todo", data);
|
||||
return client.query(q.Create(q.Ref("classes/todos"), {data}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue