mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-04 14:44:30 +01:00
Code formatting updates (#4502)
* Editorconfig: Add space_before_self_closing setting This was a difference between the way dotnet-format and Rider format code. See https://www.jetbrains.com/help/rider/EditorConfig_Index.html * Editorconfig: Keep 4 spaces indentation for Swagger JSON files They are all formatted that way, let's keep it like that. * Apply dotnet-format, mostly white-space related changes
This commit is contained in:
@@ -42,9 +42,9 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
await _payoutProcessorService.GetProcessors(
|
||||
new PayoutProcessorService.PayoutProcessorQuery()
|
||||
{
|
||||
Stores = new[] {storeId},
|
||||
Processors = new[] {LightningAutomatedPayoutSenderFactory.ProcessorName},
|
||||
PaymentMethods = paymentMethod is null ? null : new[] {paymentMethod}
|
||||
Stores = new[] { storeId },
|
||||
Processors = new[] { LightningAutomatedPayoutSenderFactory.ProcessorName },
|
||||
PaymentMethods = paymentMethod is null ? null : new[] { paymentMethod }
|
||||
});
|
||||
|
||||
return Ok(configured.Select(ToModel).ToArray());
|
||||
@@ -61,7 +61,7 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
|
||||
private static AutomatedPayoutBlob FromModel(LightningAutomatedPayoutSettings data)
|
||||
{
|
||||
return new AutomatedPayoutBlob() {Interval = data.IntervalSeconds};
|
||||
return new AutomatedPayoutBlob() { Interval = data.IntervalSeconds };
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
@@ -75,9 +75,9 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
(await _payoutProcessorService.GetProcessors(
|
||||
new PayoutProcessorService.PayoutProcessorQuery()
|
||||
{
|
||||
Stores = new[] {storeId},
|
||||
Processors = new[] {LightningAutomatedPayoutSenderFactory.ProcessorName},
|
||||
PaymentMethods = new[] {paymentMethod}
|
||||
Stores = new[] { storeId },
|
||||
Processors = new[] { LightningAutomatedPayoutSenderFactory.ProcessorName },
|
||||
PaymentMethods = new[] { paymentMethod }
|
||||
}))
|
||||
.FirstOrDefault();
|
||||
activeProcessor ??= new PayoutProcessorData();
|
||||
@@ -88,7 +88,9 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
var tcs = new TaskCompletionSource();
|
||||
_eventAggregator.Publish(new PayoutProcessorUpdated()
|
||||
{
|
||||
Data = activeProcessor, Id = activeProcessor.Id, Processed = tcs
|
||||
Data = activeProcessor,
|
||||
Id = activeProcessor.Id,
|
||||
Processed = tcs
|
||||
});
|
||||
await tcs.Task;
|
||||
return Ok(ToModel(activeProcessor));
|
||||
|
||||
Reference in New Issue
Block a user