mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Minor refactor
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user