diff --git a/db/src/rest/rest.go b/db/src/rest/rest.go index 49ecfb5..c02824c 100644 --- a/db/src/rest/rest.go +++ b/db/src/rest/rest.go @@ -365,7 +365,9 @@ func (g *RestGateway) getRoomCurrent(c *gin.Context) { } if it.Next() { - c.JSON(http.StatusOK, it.Value()) + val := it.Value() + val["room"] = roomID + c.JSON(http.StatusOK, val) return } @@ -424,7 +426,9 @@ func (g *RestGateway) getRoomHistory(c *gin.Context) { var history []map[string]any for it.Next() { - history = append(history, it.Value()) + val := it.Value() + val["room"] = roomID + history = append(history, val) } if err := it.Err(); err != nil {