Dont compute fee percentile / median fee when indexing is disabled because we need summaries

This commit is contained in:
nymkappa
2023-02-19 19:17:51 +09:00
parent 6965c8f41b
commit eceedf0bdf
2 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,8 @@ import { FieldPacket, OkPacket, PoolOptions, ResultSetHeader, RowDataPacket } fr
private checkDBFlag() {
if (config.DATABASE.ENABLED === false) {
logger.err('Trying to use DB feature but config.DATABASE.ENABLED is set to false, please open an issue');
const stack = new Error().stack;
logger.err(`Trying to use DB feature but config.DATABASE.ENABLED is set to false, please open an issue.\nStack trace: ${stack}}`);
}
}