Return view after webhook test POST call

This commit is contained in:
Umar Bolatov
2021-04-18 22:52:08 -07:00
parent 2262acf12b
commit 7cf6c97d3f

View File

@@ -121,9 +121,11 @@ namespace BTCPayServer.Controllers
}
[HttpPost("{storeId}/webhooks/{webhookId}/test")]
public async void TestWebhook(string webhookId, TestWebhookViewModel viewModel)
public async Task<IActionResult> TestWebhook(string webhookId, TestWebhookViewModel viewModel)
{
await WebhookNotificationManager.TestWebhook(CurrentStore.Id, webhookId, viewModel.Type);
return View(nameof(TestWebhook));
}
[HttpPost("{storeId}/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver")]