Skip to content

Commit

Permalink
Merge pull request #594 from EspressoSystems/ts/fix/explorer-api-hist…
Browse files Browse the repository at this point in the history
…ogram-data-order

Fix explorer summary histogram data order
  • Loading branch information
Ayiga committed May 23, 2024
2 parents 337df31 + 6a6f0cf commit e14b9e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/data_source/storage/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2219,8 +2219,10 @@ where
FROM header AS h
JOIN payload AS p ON
p.height = h.height
ORDER BY h.height DESC
LIMIT 50",
WHERE
h.height IN (SELECT height FROM header ORDER BY height DESC LIMIT 50)
ORDER BY h.height ASC
",
Vec::<Box<dyn ToSql + Send + Sync>>::new(),
).await?;

Expand Down

0 comments on commit e14b9e0

Please sign in to comment.