Add data zoom to difficulty
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user