hierarchical-estimates-visu.../lib/pushToMongo.js

14 lines
344 B
JavaScript
Raw Normal View History

2021-09-22 20:59:06 +00:00
import axios from "axios"
2021-12-08 12:53:47 +00:00
const CONNECTION_IS_ACTIVE = true
2021-09-22 20:59:06 +00:00
export async function pushToMongo(data){
2021-12-08 12:53:47 +00:00
if(CONNECTION_IS_ACTIVE){
let response = await axios.post('http://metaforecast-twitter-bot.herokuapp.com/utility-function-extractor', {
data: data
})
console.log(response)
}
}
// pushToMongo()