utility-function-extractor/lib/pushToMongo.js

14 lines
322 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('https://server.loki.red/utility-function-extractor', {
2021-12-08 12:53:47 +00:00
data: data
})
console.log(response)
}
}
// pushToMongo()