mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Greenfield: Fix payment method update regression (#5932)
* Greenfield: Fix payment method update regression Do not exclude if `enabled` is `true`. Got introduced in #5809. * Fix PaymentMethodId Swagger docs
This commit is contained in:
@@ -115,7 +115,7 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
if (request?.Enabled is { } enabled)
|
||||
{
|
||||
var storeBlob = Store.GetStoreBlob();
|
||||
storeBlob.SetExcluded(paymentMethodId, enabled);
|
||||
storeBlob.SetExcluded(paymentMethodId, !enabled);
|
||||
Store.SetStoreBlob(storeBlob);
|
||||
}
|
||||
await _storeRepository.UpdateStore(Store);
|
||||
|
||||
Reference in New Issue
Block a user