Directly casting to NotificationEvent, evading null case

This commit is contained in:
rockstardev 2020-06-14 23:26:57 -05:00
parent f52c6b65ce
commit 342f63a625

View file

@ -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)