utility-function-extractor/packages/webpage-refactor/lib/pushToMongo.js

17 lines
326 B
JavaScript
Raw Permalink Normal View History

2022-06-18 18:18:15 +00:00
import axios from "axios";
const CONNECTION_IS_ACTIVE = true;
export async function pushToMongo(data) {
if (CONNECTION_IS_ACTIVE) {
let response = await axios.post(
"https://server.loki.red/utility-function-extractor",
{
data: data,
}
);
console.log(response);
}
}
// pushToMongo()