refactor(db): change order for history

Get now value from the most recent to the most ancien requested value

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2026-05-30 22:02:16 +02:00
parent be5772e488
commit 811641c58b

View File

@@ -470,7 +470,7 @@ func (g *RestGateway) getRoomHistory(c *gin.Context) {
window_open
FROM binned
WHERE time > now() - INTERVAL '%s'
ORDER BY time ASC
ORDER BY time DESC
`, g.measurementName, window, nodeFilter, window,
)