mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix potential crash on migration
This commit is contained in:
parent
e5bb0bcba3
commit
7c77b16517
1 changed files with 2 additions and 0 deletions
|
@ -237,6 +237,8 @@ namespace BTCPayServer.Hosting
|
|||
var stores = await ctx.Stores.ToArrayAsync();
|
||||
foreach (var store in stores)
|
||||
{
|
||||
if (store.StoreBlob is null)
|
||||
continue;
|
||||
var blob = JObject.Parse(store.StoreBlob);
|
||||
var array = blob["excludedPaymentMethods"] as JArray;
|
||||
if (array is null || array.Count == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue