Added local media server changes.

This commit is contained in:
Patrick Fic
2022-05-10 15:00:59 -07:00
parent d7be503a8e
commit f1dfd4fd80
14 changed files with 468 additions and 14 deletions

View File

@@ -108,7 +108,14 @@ export function* signInSuccessSaga({ payload }) {
const shop = yield client.query({ query: QUERY_BODYSHOP });
logImEXEvent("imexmobile_sign_in_success", payload);
yield put(setBodyshop(shop.data.bodyshops[0]));
yield put(
setBodyshop({
...shop.data.bodyshops[0],
uselocalmediaserver: true,
localmediaserverhttp: "http://192.168.1.235:8000", //TODO: ENSURE THAT THIS HAS BEEN REMOVED POST TESTING.
localmediaservernetwork: "\\192.168.1.235:8000", //TODO: ENSURE THAT THIS HAS BEEN REMOVED POST TESTING.
})
);
} catch (error) {
console.log("UH-OH. Couldn't get shop details.", error);
}