mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Fix build in netcoreapp21
This commit is contained in:
parent
3bdc7c102a
commit
78b86ce0ea
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue