mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Fix error 500 if token not found
This commit is contained in:
parent
d53c987f2e
commit
93645b2fbe
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,8 @@ namespace BTCPayServer.Authentication
|
|||
using (var ctx = _Factory.CreateContext())
|
||||
{
|
||||
var token = await ctx.PairedSINData.FindAsync(tokenId);
|
||||
if (token == null)
|
||||
return null;
|
||||
return CreateTokenEntity(token);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue