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:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user