Add data zoom to difficulty

This commit is contained in:
nymkappa committed 2022-02-22 00:26:16 +09:00
1 parent 756653ad84
commit 724915dba7
5 files changed
+51 -9

No files matched your search

+1 -1
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();
@@ -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();