From a556eef732e41a004ae3736ad8e412c466a9b159 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Wed, 8 Dec 2021 13:53:47 +0100 Subject: [PATCH] tweak: Re-enable connection to mongo --- lib/pushToMongo.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/pushToMongo.js b/lib/pushToMongo.js index 7bb7e93..308263c 100644 --- a/lib/pushToMongo.js +++ b/lib/pushToMongo.js @@ -1,11 +1,14 @@ import axios from "axios" +const CONNECTION_IS_ACTIVE = true + export async function pushToMongo(data){ - /* - let response = await axios.post('http://metaforecast-twitter-bot.herokuapp.com/utility-function-extractor', { - data: data - }) - console.log(response) - */ + if(CONNECTION_IS_ACTIVE){ + let response = await axios.post('http://metaforecast-twitter-bot.herokuapp.com/utility-function-extractor', { + data: data + }) + console.log(response) + } + } // pushToMongo() \ No newline at end of file