mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 23:54:26 +01:00
Improve everything
This commit is contained in:
@@ -82,13 +82,6 @@ namespace BTCPayServer.Plugins.Wabisabi
|
||||
}
|
||||
}
|
||||
|
||||
if (wabisabiSettings.Settings.All(settings => !settings.Enabled))
|
||||
{
|
||||
|
||||
await _storeRepository.UpdateSetting<WabisabiStoreSettings>(storeId, nameof(WabisabiStoreSettings), null!);
|
||||
}
|
||||
else
|
||||
{
|
||||
var res = await GetWabisabiForStore(storeId);
|
||||
foreach (var wabisabiStoreCoordinatorSettings in wabisabiSettings.Settings)
|
||||
{
|
||||
@@ -114,7 +107,7 @@ namespace BTCPayServer.Plugins.Wabisabi
|
||||
|
||||
}
|
||||
await _storeRepository.UpdateSetting(storeId, nameof(WabisabiStoreSettings), wabisabiSettings!);
|
||||
}
|
||||
|
||||
_memoryCache.Remove(GetCacheKey(storeId));
|
||||
await _walletProvider.SettingsUpdated(storeId, wabisabiSettings);
|
||||
// var existingProcessor = (await _payoutProcessorService.GetProcessors(new PayoutProcessorService.PayoutProcessorQuery()
|
||||
|
||||
Reference in New Issue
Block a user