Greenfield: Fix missing default currency in stores API

Docs mention it should be present, but it wasn't. Fixes #5123.
This commit is contained in:
Dennis Reimann 2023-06-27 11:39:30 +02:00 committed by Andrew Camilleri
parent 4afec2e2b6
commit 3ed81c3a78

View file

@ -129,6 +129,7 @@ namespace BTCPayServer.Controllers.Greenfield
//we do not include EmailSettings in this model and instead opt to set it in stores/storeid/email endpoints
//we do not include PaymentMethodCriteria because moving the CurrencyValueJsonConverter to the Client csproj is hard and requires a refactor (#1571 & #1572)
NetworkFeeMode = storeBlob.NetworkFeeMode,
DefaultCurrency = storeBlob.DefaultCurrency,
RequiresRefundEmail = storeBlob.RequiresRefundEmail,
CheckoutType = storeBlob.CheckoutType,
Receipt = InvoiceDataBase.ReceiptOptions.Merge(storeBlob.ReceiptOptions, null),