From 811641c58bd9fd05c42190c5bf5748d720cebf68 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Sat, 30 May 2026 22:02:16 +0200 Subject: [PATCH] refactor(db): change order for history Get now value from the most recent to the most ancien requested value Signed-off-by: Klagarge --- db/src/rest/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/src/rest/rest.go b/db/src/rest/rest.go index 7441383..54b8e00 100644 --- a/db/src/rest/rest.go +++ b/db/src/rest/rest.go @@ -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, )