From 943865b2c110375ed0cf8e2b28fb610c6be5d890 Mon Sep 17 00:00:00 2001 From: davidwells Date: Mon, 11 Jun 2018 17:12:39 -0700 Subject: [PATCH] update function name --- functions/{todos-read-one.js => todos-read.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename functions/{todos-read-one.js => todos-read.js} (97%) diff --git a/functions/todos-read-one.js b/functions/todos-read.js similarity index 97% rename from functions/todos-read-one.js rename to functions/todos-read.js index 5eadbb6..76ecf5e 100644 --- a/functions/todos-read-one.js +++ b/functions/todos-read.js @@ -6,7 +6,7 @@ const client = new faunadb.Client({ }) exports.handler = (event, context, callback) => { - const id = event.path.replace(/\/\.netlify\/functions\/todos-read-one\//, "") + const id = event.path.replace(/\/\.netlify\/functions\/todos-read\//, "") console.log(`readOne todo ${id}`) return client.query(q.Get(q.Ref(`classes/todos/${id}`))) .then((response) => {