Add data zoom to difficulty

This commit is contained in:
nymkappa
2022-02-22 00:17:41 +09:00
parent 756653ad84
commit 724915dba7
5 changed files with 51 additions and 9 deletions

View File

@@ -274,7 +274,7 @@ class BlocksRepository {
}
query += ` GROUP BY difficulty
ORDER BY blockTimestamp DESC`;
ORDER BY blockTimestamp`;
const [rows]: any[] = await connection.query(query);
connection.release();

View File

@@ -41,7 +41,7 @@ class HashratesRepository {
query += ` WHERE hashrate_timestamp BETWEEN DATE_SUB(NOW(), INTERVAL ${interval}) AND NOW()`;
}
query += ` ORDER by hashrate_timestamp DESC`;
query += ` ORDER by hashrate_timestamp`;
const [rows]: any[] = await connection.query(query);
connection.release();