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