Add difficulty chart timespan selection

This commit is contained in:
nymkappa
2022-02-17 09:41:05 +09:00
parent 9fa7e58d82
commit f45103e7e3
7 changed files with 93 additions and 41 deletions

View File

@@ -232,7 +232,7 @@ class BlocksRepository {
const connection = await DB.pool.getConnection();
let query = `SELECT MIN(blockTimestamp) as timestamp, difficulty, height
let query = `SELECT MIN(UNIX_TIMESTAMP(blockTimestamp)) as timestamp, difficulty, height
FROM blocks`;
if (interval) {