mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Fix SQL query for /api/v1/accelerations/block/:height
for older blocks
This commit is contained in:
parent
0c4631359d
commit
9a531b0a00
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class AccelerationRepository {
|
|||
let params: any[] = [];
|
||||
let hasFilter = false;
|
||||
|
||||
if (interval) {
|
||||
if (interval && height === null) {
|
||||
query += ` WHERE accelerations.added BETWEEN DATE_SUB(NOW(), INTERVAL ${interval}) AND NOW() `;
|
||||
hasFilter = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue