Update todos-create.js

This commit is contained in:
David Wells 2019-01-31 14:02:16 -08:00 committed by GitHub
parent 65522c08ec
commit 36e12d4a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ import faunadb from 'faunadb' /* Import faunaDB sdk */
/* configure faunaDB Client with our secret */ /* configure faunaDB Client with our secret */
const q = faunadb.query const q = faunadb.query
const client = new faunadb.Client({ const client = new faunadb.Client({
secret: process.env.FAUNADB_SECRET secret: process.env.FAUNADB_SERVER_SECRET
}) })
/* export our lambda function as named "handler" export */ /* export our lambda function as named "handler" export */