Prepare startup.cs for netcoreapp3.0

This commit is contained in:
nicolas.dorier
2019-10-03 18:46:09 +09:00
parent 411fe90b8c
commit c9ec0f9d3c
4 changed files with 33 additions and 6 deletions

View File

@@ -7,7 +7,6 @@ using BTCPayServer.Data;
using BTCPayServer.Services.Invoices;
using BTCPayServer.Services.Stores;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Internal;
namespace BTCPayServer.Services.PaymentRequests
{
@@ -133,7 +132,7 @@ namespace BTCPayServer.Services.PaymentRequests
{
using (var context = _ContextFactory.CreateContext())
{
var canDelete = !EnumerableExtensions.Any((await GetInvoicesForPaymentRequest(id)));
var canDelete = !(await GetInvoicesForPaymentRequest(id)).Any();
if (!canDelete) return false;
var pr = await FindPaymentRequest(id, userId);
if (pr == null)