From 63c354ab4dd849dc352f5c2a375868279fbd4da4 Mon Sep 17 00:00:00 2001 From: ritfsaecdaq Date: Sun, 28 Jan 2018 08:21:09 -0500 Subject: [PATCH] jeff did something wierd --- googletrendsgame/server/server.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/googletrendsgame/server/server.js b/googletrendsgame/server/server.js index 29a7719..15791c5 100644 --- a/googletrendsgame/server/server.js +++ b/googletrendsgame/server/server.js @@ -342,13 +342,10 @@ var player = function(s) { trendingAPI.getPopularity(w).then(function(result) { - // var obj = new Object(); - // obj.word = w; - // obj.score = result; - // this.log.push(obj); console.log("api result for " + result + w); - resolve(result); + }).catch(function(err){ + console.log(err); }) });