From 7c000f3b9c00c758f84db33f1c40a876efd74693 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Sat, 30 May 2026 20:36:49 +0200 Subject: [PATCH] fix(db): return window tag in room status Breakchange in Influx, it's now window_open. Change this tag in the returned json to previous tag "window" to avoir a breaking change Signed-off-by: Klagarge --- db/src/rest/rest.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/src/rest/rest.go b/db/src/rest/rest.go index fb46a9f..b0fa8d8 100644 --- a/db/src/rest/rest.go +++ b/db/src/rest/rest.go @@ -382,6 +382,8 @@ func (g *RestGateway) getRoomCurrent(c *gin.Context) { if it.Next() { val := it.Value() val["room"] = roomID + val["window"] = val["window_open"] + delete(val, "window_open") if t, ok := val["time"]; ok { val["time"] = formatTime(t) } @@ -446,6 +448,8 @@ func (g *RestGateway) getRoomHistory(c *gin.Context) { for it.Next() { val := it.Value() val["room"] = roomID + val["window"] = val["window_open"] + delete(val, "window_open") if t, ok := val["time"]; ok { val["time"] = formatTime(t) }