Don't try to reset hashrates states if not bitcoin
This commit is contained in:
parent
d17a78715a
commit
87405ec4a5
@ -97,8 +97,10 @@ class Server {
|
|||||||
await databaseMigration.$truncateIndexedData(tables);
|
await databaseMigration.$truncateIndexedData(tables);
|
||||||
}
|
}
|
||||||
await databaseMigration.$initializeOrMigrateDatabase();
|
await databaseMigration.$initializeOrMigrateDatabase();
|
||||||
await this.$resetHashratesIndexingState();
|
if (Common.indexingEnabled()) {
|
||||||
await poolsParser.migratePoolsJson();
|
await this.$resetHashratesIndexingState();
|
||||||
|
await poolsParser.migratePoolsJson();
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error(e instanceof Error ? e.message : 'Error');
|
throw new Error(e instanceof Error ? e.message : 'Error');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user