mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 07:04:26 +01:00
Fix invoice index migration
This commit is contained in:
@@ -120,10 +120,10 @@ namespace BTCPayServer.HostedServices
|
||||
Logs.PayServer.LogInformation($"Full invoice search import successful");
|
||||
}
|
||||
|
||||
private Task<int> CountInvoices()
|
||||
private async Task<int> CountInvoices()
|
||||
{
|
||||
using var ctx = _dbContextFactory.CreateContext();
|
||||
return ctx.Invoices.CountAsync();
|
||||
return await ctx.Invoices.CountAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace BTCPayServer.Hosting
|
||||
try
|
||||
{
|
||||
await Migrate(cancellationToken);
|
||||
var settings = (await _Settings.GetSettingAsync<MigrationSettings>()) ?? new MigrationSettings();
|
||||
var settings = (await _Settings.GetSettingAsync<MigrationSettings>()) ?? new MigrationSettings() { MigratedInvoiceTextSearchPages = int.MaxValue };
|
||||
if (!settings.PaymentMethodCriteria)
|
||||
{
|
||||
await MigratePaymentMethodCriteria();
|
||||
|
||||
Reference in New Issue
Block a user