mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
[Features] Subscriptions
This commit is contained in:
@@ -20,10 +20,10 @@ public static class WebhookExtensions
|
||||
{
|
||||
foreach(var trigger in viewModels)
|
||||
{
|
||||
var webhookType = trigger.Type;
|
||||
if (trigger.Type.StartsWith("WH-"))
|
||||
var webhookType = trigger.Trigger;
|
||||
if (trigger.Trigger.StartsWith("WH-"))
|
||||
throw new ArgumentException("Webhook type cannot start with WH-");
|
||||
trigger.Type = EmailRuleData.GetWebhookTriggerName(trigger.Type);
|
||||
trigger.Trigger = EmailRuleData.GetWebhookTriggerName(trigger.Trigger);
|
||||
services.AddSingleton(new AvailableWebhookViewModel(webhookType, trigger.Description));
|
||||
services.AddSingleton(trigger);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user