update user command

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

@ -116,7 +116,8 @@ func (u *UserMgo) GetUserCommands(ctx context.Context, userID string, Type int32
}
defer cursor.Close(ctx)
var commands []user.CommandInfoResp
// Initialize commands as an empty slice
commands := []user.CommandInfoResp{}
for cursor.Next(ctx) {
var document struct {

Loading…
Cancel
Save