Setting hints during store creation and update

This commit is contained in:
rockstardev
2020-10-15 23:30:46 -05:00
parent 17c8ac8248
commit 15af66de55
9 changed files with 88 additions and 49 deletions

View File

@@ -46,6 +46,9 @@ namespace BTCPayServer.Data
var result = storeData.StoreBlob == null ? new StoreBlob() : new Serializer(null).ToObject<StoreBlob>(Encoding.UTF8.GetString(storeData.StoreBlob));
if (result.PreferredExchange == null)
result.PreferredExchange = CoinGeckoRateProvider.CoinGeckoName;
if (result.Hints == null)
result.Hints = new StoreBlob.StoreHints();
return result;
}