IO-766 Import job from disk scan.

This commit is contained in:
Patrick Fic
2021-03-18 08:46:54 -07:00
parent c27f66fdb3
commit 2284d8ec92
4 changed files with 13 additions and 7 deletions

View File

@@ -26,9 +26,10 @@ export function PartnerPingComponent({ setPartnerVersion }) {
// Create an scoped async function in the hook
async function checkPartnerStatus() {
try {
if (process.env.NODE_ENV === "development") return;
//if (process.env.NODE_ENV === "development") return;
const PartnerResponse = await axios.post("http://localhost:1337/ping/");
const { appver, qbpath } = PartnerResponse.data;
console.log("SETTING PARTNER VERSION.");
setPartnerVersion(appver);
console.log({ appver, qbpath });
if (!qbpath) {