From 8083935b47659dad9f1040cda1abfa73779da895 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 27 Apr 2021 18:55:04 +0900 Subject: [PATCH] Greenfield: Deleting a store in the server, should delete only webhooks of this store --- BTCPayServer/Services/Stores/StoreRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Services/Stores/StoreRepository.cs b/BTCPayServer/Services/Stores/StoreRepository.cs index 7db402f40..47b9d75ec 100644 --- a/BTCPayServer/Services/Stores/StoreRepository.cs +++ b/BTCPayServer/Services/Stores/StoreRepository.cs @@ -379,6 +379,7 @@ namespace BTCPayServer.Services.Stores if (store == null) return false; var webhooks = await ctx.StoreWebhooks + .Where(o => o.StoreId == storeId) .Select(o => o.Webhook) .ToArrayAsync(); foreach (var w in webhooks)