fix(userlist): correct node ID assignment and update query logic for tag filtering

This commit is contained in:
Chang lue Tsen 2025-09-04 14:05:04 -04:00
parent 61ac829c37
commit 60988bc2ba

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.Id) nodeIds = append(nodeIds, n.ServerId)
if n.Tags != "" { if n.Tags != "" {
nodeTag = append(nodeTag, strings.Split(n.Tags, ",")...) nodeTag = append(nodeTag, strings.Split(n.Tags, ",")...)
} }