Don't try to reset hashrates states if not bitcoin

This commit is contained in:
nymkappa 2022-03-11 21:09:56 +01:00
parent de35cbe2c0
commit 42e31b8410

View File

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