Merge branch '1.0.3'
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bodyshop-desktop",
|
"name": "bodyshop-desktop",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "Shop Management System Partner",
|
"description": "Shop Management System Partner",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "Convenient Brands, LLC",
|
"author": "Convenient Brands, LLC",
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ const ipcMainHandleAuthStateChanged = async (
|
|||||||
//Need to query the currently active shop, and store the metadata as well.
|
//Need to query the currently active shop, and store the metadata as well.
|
||||||
//Also need to query the OP Codes for decoding reference.
|
//Also need to query the OP Codes for decoding reference.
|
||||||
log.debug("Received authentication state change from Renderer.", user);
|
log.debug("Received authentication state change from Renderer.", user);
|
||||||
handleShopMetaDataFetch();
|
await handleShopMetaDataFetch();
|
||||||
//Check for updates
|
//Check for updates
|
||||||
const bodyshop = Store.get("app.bodyshop");
|
const bodyshop = Store.get("app.bodyshop");
|
||||||
if (bodyshop?.convenient_company === "alpha") {
|
if (bodyshop?.convenient_company?.toLowerCase() === "alpha") {
|
||||||
autoUpdater.channel = "alpha";
|
autoUpdater.channel = "alpha";
|
||||||
log.debug("Setting update channel to ALPHA channel.");
|
log.debug("Setting update channel to ALPHA channel.");
|
||||||
} else if (bodyshop?.convenient_company === "beta") {
|
} else if (bodyshop?.convenient_company?.toLowerCase() === "beta") {
|
||||||
autoUpdater.channel = "beta";
|
autoUpdater.channel = "beta";
|
||||||
log.debug("Setting update channel to BETA channel.");
|
log.debug("Setting update channel to BETA channel.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user