Fix block acceleration fees calculation & api

This commit is contained in:
Mononaut
2024-03-10 15:08:44 +00:00
parent c55c298fb5
commit a2b0dd3a23
3 changed files with 16 additions and 8 deletions

View File

@@ -73,7 +73,8 @@ class AccelerationRepository {
if (interval) {
query += ` WHERE accelerations.added BETWEEN DATE_SUB(NOW(), INTERVAL ${interval}) AND NOW() `;
} else if (height != null) {
}
if (height != null) {
query += ` WHERE accelerations.height = ? `;
params.push(height);
} else if (poolSlug != null) {