utility-function-extractor/lib/pushToMongo.js

14 lines
344 B
JavaScript

import axios from "axios"
const CONNECTION_IS_ACTIVE = true
export async function pushToMongo(data){
if(CONNECTION_IS_ACTIVE){
let response = await axios.post('http://metaforecast-twitter-bot.herokuapp.com/utility-function-extractor', {
data: data
})
console.log(response)
}
}
// pushToMongo()