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

18 lines
327 B
JavaScript
Raw Normal View History

2022-01-30 15:29:45 +00:00
import axios from "axios";
2021-09-22 20:59:06 +00:00
2022-01-30 15:29:45 +00:00
const CONNECTION_IS_ACTIVE = true;
2021-12-08 12:53:47 +00:00
2022-01-30 15:29:45 +00:00
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);
}
}
2022-01-30 15:29:45 +00:00
// pushToMongo()