Don't try to reset hashrates states if not bitcoin

This commit is contained in:
nymkappa committed 2022-03-12 15:48:14 +01:00
1 parent d17a78715a
commit 87405ec4a5
1 file changed
+4 -2
+4 -2
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');
}