mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
attempt other fix
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>LN Prism</Product>
|
<Product>LN Prism</Product>
|
||||||
<Description>Automated value splits for lightning.</Description>
|
<Description>Automated value splits for lightning.</Description>
|
||||||
<Version>1.1.1</Version>
|
<Version>1.1.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -69,6 +69,13 @@ namespace BTCPayServer.Plugins.Prism
|
|||||||
public override async Task StartAsync(CancellationToken cancellationToken)
|
public override async Task StartAsync(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
_prismSettings = await _storeRepository.GetSettingsAsync<PrismSettings>(nameof(PrismSettings));
|
_prismSettings = await _storeRepository.GetSettingsAsync<PrismSettings>(nameof(PrismSettings));
|
||||||
|
foreach (var keyValuePair in _prismSettings)
|
||||||
|
{
|
||||||
|
keyValuePair.Value.Splits ??= new List<Split>();
|
||||||
|
keyValuePair.Value.Destinations ??= new Dictionary<string, PrismDestination>();
|
||||||
|
keyValuePair.Value.PendingPayouts ??= new Dictionary<string, PendingPayout>();
|
||||||
|
|
||||||
|
}
|
||||||
await base.StartAsync(cancellationToken);
|
await base.StartAsync(cancellationToken);
|
||||||
_ = CheckPayouts(CancellationToken);
|
_ = CheckPayouts(CancellationToken);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user