mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix invoice index migration
This commit is contained in:
parent
869411a977
commit
4691e896a1
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue