From 14cb65eb6ad18d15e9a7d621bda6928d0f3f575d Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 3 Aug 2022 18:36:25 +0900 Subject: [PATCH] Minor refactor --- BTCPayServer/Services/Stores/StoreRepository.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BTCPayServer/Services/Stores/StoreRepository.cs b/BTCPayServer/Services/Stores/StoreRepository.cs index f0e03a00c..f41d15a8d 100644 --- a/BTCPayServer/Services/Stores/StoreRepository.cs +++ b/BTCPayServer/Services/Stores/StoreRepository.cs @@ -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();