mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
update user command
This commit is contained in:
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…
x
Reference in New Issue
Block a user