Decoder changes for adjustrite.
This commit is contained in:
@@ -322,7 +322,12 @@ namespace BodyshopPartner.ViewModels
|
||||
}"
|
||||
};
|
||||
|
||||
var Data = await Utils.GraphQL.ExecuteQuery(r);
|
||||
try
|
||||
{
|
||||
|
||||
var Data = await Utils.GraphQL.ExecuteQuery(r);
|
||||
logger.Debug("Bodyshop Query Data");
|
||||
logger.Debug(JsonConvert.SerializeObject(Data));
|
||||
if (Data != null)
|
||||
{
|
||||
ShopData = Data.bodyshops.ToObject<ObservableCollection<Bodyshop>>();
|
||||
@@ -334,6 +339,14 @@ namespace BodyshopPartner.ViewModels
|
||||
Utils.AppMetaData.ShopRegion = ActiveShop?.RegionConfig;
|
||||
Properties.Settings.Default.LastSelectedShop = ActiveShop.Id ?? null;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
logger.Error("Error initializing shop.");
|
||||
logger.Error(ex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user