mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-10 08:44:23 +01:00
Directly casting to NotificationEvent, evading null case
This commit is contained in:
@@ -30,7 +30,7 @@ namespace BTCPayServer.HostedServices
|
||||
|
||||
protected override async Task ProcessEvent(object evt, CancellationToken cancellationToken)
|
||||
{
|
||||
var casted = evt as NotificationEvent;
|
||||
var casted = (NotificationEvent)evt;
|
||||
using (var db = _ContextFactory.CreateContext())
|
||||
{
|
||||
foreach (var uid in casted.ApplicationUserIds)
|
||||
|
||||
Reference in New Issue
Block a user