Greenfield: Deleting a store in the server, should delete only webhooks of this store

This commit is contained in:
nicolas.dorier
2021-04-27 18:55:04 +09:00
parent c7d11132e5
commit 8083935b47

View File

@@ -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)