mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Directly casting to NotificationEvent, evading null case
This commit is contained in:
parent
f52c6b65ce
commit
342f63a625
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue