Only reset hashrate state flag after database migration - Fix weekly hashrate indexing bug

This commit is contained in:
nymkappa
2022-03-05 13:54:07 +01:00
parent 5f19b6dd07
commit 5f6c1c6ccf
2 changed files with 3 additions and 3 deletions

View File

@@ -96,8 +96,8 @@ class Server {
await Common.sleep(5000);
await databaseMigration.$truncateIndexedData(tables);
}
await this.$resetHashratesIndexingState();
await databaseMigration.$initializeOrMigrateDatabase();
await this.$resetHashratesIndexingState();
await poolsParser.migratePoolsJson();
} catch (e) {
throw new Error(e instanceof Error ? e.message : 'Error');