mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 10:32:13 +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();
|
.FirstOrDefaultAsync();
|
||||||
if (hook is null)
|
if (hook is null)
|
||||||
return;
|
return;
|
||||||
var currentBlob = hook.GetBlob();
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(webhookBlob.Secret))
|
if (string.IsNullOrEmpty(webhookBlob.Secret))
|
||||||
{
|
{
|
||||||
webhookBlob.Secret = currentBlob.Secret;
|
webhookBlob.Secret = hook.GetBlob().Secret;
|
||||||
}
|
}
|
||||||
hook.SetBlob(webhookBlob);
|
hook.SetBlob(webhookBlob);
|
||||||
await ctx.SaveChangesAsync();
|
await ctx.SaveChangesAsync();
|
||||||
|
|
Loading…
Add table
Reference in a new issue