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:
d11n
2024-04-16 04:32:52 +02:00
committed by GitHub
parent 36cfc3648f
commit 76719cdc4a
3 changed files with 3 additions and 7 deletions

View File

@@ -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);