keys to string

This commit is contained in:
Mzack9999
2025-11-28 21:49:21 +04:00
parent b1cd543843
commit 921b3d3b95

View File

@@ -209,12 +209,9 @@ func RunLuaScript(ctx context.Context, host string, port int, password string, s
case []string:
keysSlice = v
case []interface{}:
// Convert []interface{} to []string (from JavaScript arrays)
keysSlice = make([]string, 0, len(v))
for _, item := range v {
if s, ok := item.(string); ok {
keysSlice = append(keysSlice, s)
}
keysSlice = append(keysSlice, fmt.Sprintf("%v", item))
}
}
}