From 38840ad33a9679c289d131c3ec471ef52d705df0 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 24 Feb 2016 15:06:51 +0000 Subject: [PATCH] updates to stop it breaking with an empty table --- server/recipes.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/recipes.js b/server/recipes.js index b4bac9a..f500aff 100644 --- a/server/recipes.js +++ b/server/recipes.js @@ -76,15 +76,13 @@ function insertRecipe(obj) { logger.debug('Insert done..'); } -var doInsertRecipe = (obj) = -> +var doInsertRecipe = (obj) => { // logger.info('sendSocket: ' + JSON.stringify(obj)); insertRecipe(obj); } -var doGetRecipe = (url) = -> +var doGetRecipe = (url) => { // logger.info('sendSocket: ' + JSON.stringify(obj)); genericGrab(url);