From de33d857cf413f80eadebfcbc1e36e0f3f0e9a4b Mon Sep 17 00:00:00 2001 From: houyuxi Date: Fri, 26 Jun 2026 19:09:49 +0800 Subject: [PATCH] fix: accumulate devices in node map instead of overwriting each iteration Signed-off-by: houyuxi --- server/internal/data/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/data/node.go b/server/internal/data/node.go index 4f59ab6..d19debc 100644 --- a/server/internal/data/node.go +++ b/server/internal/data/node.go @@ -79,7 +79,7 @@ func (r *nodeRepo) updateLocalNodes() { continue } for _, device := range devices { - n[node.UID].Devices = append(bizNode.Devices, &biz.DeviceInfo{ + n[node.UID].Devices = append(n[node.UID].Devices, &biz.DeviceInfo{ Index: int(device.Index), Id: device.ID, AliasId: device.AliasId,