Cleanse objects from obsolete altcoins

This commit is contained in:
Kukks
2022-08-15 18:45:21 +02:00
committed by Andrew Camilleri
parent b6062a94b9
commit 13e3b515c9
4 changed files with 36 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ 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;
result.PaymentMethodCriteria.RemoveAll(criteria => criteria.PaymentMethod is null);
return result;
}