Skip to content

Commit df4fced

Browse files
committed
fix: price_history api endpoint order by
1 parent 7b91e00 commit df4fced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/routes/price_history.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ router.get('/?', async (req, res) => {
1111
return res.json(cached)
1212
}
1313

14-
const data = await db('historical_price')
14+
const data = await db('historical_price').orderBy('timestamp_utc', 'asc')
1515

1616
if (data.length) {
1717
// set cache for 12 hours

0 commit comments

Comments
 (0)