update user command

pull/1532/head
AndrewZuo01 2 years ago
parent 4c34647ccf
commit 3c57baec6b

@ -376,7 +376,7 @@ func (s *userServer) ProcessUserCommandGet(ctx context.Context, req *pbuser.Proc
} }
// Create a slice to store CommandInfoResp // Create a slice to store CommandInfoResp
var commandInfoSlice []*pbuser.CommandInfoResp commandInfoSlice := []*pbuser.CommandInfoResp{}
for _, v := range commands { for _, v := range commands {
commandInfoSlice = append(commandInfoSlice, &pbuser.CommandInfoResp{ commandInfoSlice = append(commandInfoSlice, &pbuser.CommandInfoResp{

Loading…
Cancel
Save