mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Simplify FirstOrDefault method call
This commit is contained in:
parent
bc33b32522
commit
1b39742919
@ -125,7 +125,7 @@ namespace BTCPayServer.HostedServices
|
||||
public async Task<DeliveryResult> TestWebhook(string storeId, string webhookId, WebhookEventType webhookEventType)
|
||||
{
|
||||
var delivery = NewDelivery(webhookId);
|
||||
var webhook = (await StoreRepository.GetWebhooks(storeId)).Where(w => w.Id == webhookId).FirstOrDefault();
|
||||
var webhook = (await StoreRepository.GetWebhooks(storeId)).FirstOrDefault(w => w.Id == webhookId);
|
||||
var deliveryRequest = new WebhookDeliveryRequest(
|
||||
webhookId,
|
||||
GetTestWebHook(storeId, webhookId, webhookEventType, delivery),
|
||||
|
Loading…
Reference in New Issue
Block a user