fix(userlist): correct node ID assignment in getServerUserListLogic

This commit is contained in:
Chang lue Tsen 2025-09-04 14:09:17 -04:00
parent 60988bc2ba
commit 712e31cc60

View File

@ -68,7 +68,7 @@ func (l *GetServerUserListLogic) GetServerUserList(req *types.GetServerUserListR
var nodeTag []string var nodeTag []string
var nodeIds []int64 var nodeIds []int64
for _, n := range nodes { for _, n := range nodes {
nodeIds = append(nodeIds, n.ServerId) nodeIds = append(nodeIds, n.Id)
if n.Tags != "" { if n.Tags != "" {
nodeTag = append(nodeTag, strings.Split(n.Tags, ",")...) nodeTag = append(nodeTag, strings.Split(n.Tags, ",")...)
} }