mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-05 18:20:30 +01:00
Minor refactor
This commit is contained in:
parent
a753459a6d
commit
14cb65eb6a
1 changed files with 1 additions and 2 deletions
|
@ -309,11 +309,10 @@ namespace BTCPayServer.Services.Stores
|
|||
.FirstOrDefaultAsync();
|
||||
if (hook is null)
|
||||
return;
|
||||
var currentBlob = hook.GetBlob();
|
||||
|
||||
if (string.IsNullOrEmpty(webhookBlob.Secret))
|
||||
{
|
||||
webhookBlob.Secret = currentBlob.Secret;
|
||||
webhookBlob.Secret = hook.GetBlob().Secret;
|
||||
}
|
||||
hook.SetBlob(webhookBlob);
|
||||
await ctx.SaveChangesAsync();
|
||||
|
|
Loading…
Add table
Reference in a new issue