mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-07 15:24:31 +01:00
Fix build in netcoreapp21
This commit is contained in:
@@ -46,7 +46,7 @@ namespace BTCPayServer.Tests
|
||||
formFile.ContentDisposition = $"form-data; name=\"file\"; filename=\"{fileInfo.Name}\"";
|
||||
return formFile;
|
||||
}
|
||||
public static void Eventually(Action act, int ms = 200000)
|
||||
public static void Eventually(Action act, int ms = 20_000)
|
||||
{
|
||||
CancellationTokenSource cts = new CancellationTokenSource(ms);
|
||||
while (true)
|
||||
|
||||
@@ -86,12 +86,18 @@ retry:
|
||||
using (var db = _ContextFactory.CreateContext())
|
||||
{
|
||||
return (await db.AddressInvoices
|
||||
#if !NETCOREAPP21
|
||||
.Include(a => a.InvoiceData.Payments)
|
||||
.Include(a => a.InvoiceData.RefundAddresses)
|
||||
#endif
|
||||
#pragma warning disable CS0618
|
||||
.Where(a => addresses.Contains(a.Address))
|
||||
#pragma warning restore CS0618
|
||||
.Select(a => a.InvoiceData)
|
||||
#if NETCOREAPP21
|
||||
.Include(a => a.Payments)
|
||||
.Include(a => a.RefundAddresses)
|
||||
#endif
|
||||
.ToListAsync()).Select(ToEntity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user