Fix: Activating the automated payout processor in the UI would crash

This commit is contained in:
nicolas.dorier 2024-11-12 17:57:32 +09:00
parent 7ac6cad18c
commit 796d8d4406
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -30,12 +30,14 @@ public class UIOnChainAutomatedPayoutProcessorsController : Controller
EventAggregator eventAggregator,
PaymentMethodHandlerDictionary handlers,
OnChainAutomatedPayoutSenderFactory onChainAutomatedPayoutSenderFactory,
IStringLocalizer stringLocalizer,
PayoutProcessorService payoutProcessorService)
{
_eventAggregator = eventAggregator;
_handlers = handlers;
_onChainAutomatedPayoutSenderFactory = onChainAutomatedPayoutSenderFactory;
_payoutProcessorService = payoutProcessorService;
StringLocalizer = stringLocalizer;
}
PayoutMethodId GetPayoutMethod(string cryptoCode) => PayoutTypes.CHAIN.GetPayoutMethodId(cryptoCode);
[HttpGet("~/stores/{storeId}/payout-processors/onchain-automated/{cryptocode}")]