Compare commits

...

3 Commits

Author SHA1 Message Date
867bc79443 bump 2021-05-19 20:20:29 +09:00
c695f11265 changelog 1.1.2 2021-05-19 20:18:50 +09:00
fe27d87500 Fix Shopify parsing (#2530) 2021-05-19 20:18:41 +09:00
3 changed files with 15 additions and 3 deletions

View File

@ -25,9 +25,17 @@ namespace BTCPayServer.Plugins.Shopify
public static ShopifySettings GetShopifySettings(this StoreBlob storeBlob)
{
if (storeBlob.AdditionalData.TryGetValue(StoreBlobKey, out var rawS) && rawS is JObject rawObj)
if (storeBlob.AdditionalData.TryGetValue(StoreBlobKey, out var rawS))
{
return new Serializer(null).ToObject<ShopifySettings>(rawObj);
if (rawS is JObject rawObj)
{
return new Serializer(null).ToObject<ShopifySettings>(rawObj);
}
else if( rawS.Type == JTokenType.String)
{
return new Serializer(null).ToObject<ShopifySettings>(rawS.Value<string>());
}
}
return null;

View File

@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
</PropertyGroup>
</Project>

View File

@ -1,5 +1,9 @@
# Changelog
## 1.1.2
* Fix: Unable to activate shopify integration @Kukks
## 1.1.1
### Improvements: