diff --git a/BTCPayServer/Services/Invoices/InvoiceRepository.cs b/BTCPayServer/Services/Invoices/InvoiceRepository.cs index 874111ba6..c1f6d32e4 100644 --- a/BTCPayServer/Services/Invoices/InvoiceRepository.cs +++ b/BTCPayServer/Services/Invoices/InvoiceRepository.cs @@ -512,9 +512,9 @@ namespace BTCPayServer.Services.Invoices builder.AppendLine(data.Id); builder.AppendLine(data.InvoiceDataId); builder.AppendLine(context.Database.ProviderName); - builder.AppendLine(context.Payments.AnyAsync(p => p.Id == data.Id).ToString()); + builder.AppendLine((await context.Payments.AnyAsync(p => p.Id == data.Id)).ToString()); await context.SaveChangesAsync().ConfigureAwait(false); - builder.AppendLine(context.Payments.AnyAsync(p => p.Id == data.Id).ToString()); + builder.AppendLine((await context.Payments.AnyAsync(p => p.Id == data.Id)).ToString()); Logs.PayServer.LogInformation(builder.ToString()); } catch(DbUpdateException) { return null; } // Already exists