utility-function-extractor/packages/webpage-legacy/lib/pushToMongo.js
2022-06-19 19:25:55 -04:00

18 lines
327 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(
"https://server.loki.red/utility-function-extractor",
{
data: data,
}
);
console.log(response);
}
}
// pushToMongo()