From d7bae8573eaf0766f2125655dbc33067bb013423 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 21 Jul 2022 17:46:51 +0800 Subject: [PATCH] fix bug --- pkg/common/db/mysql_model/im_mysql_model/group_member_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/mysql_model/im_mysql_model/group_member_model.go b/pkg/common/db/mysql_model/im_mysql_model/group_member_model.go index 289a157fc..d5b5c5ced 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/group_member_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/group_member_model.go @@ -240,7 +240,7 @@ func GetJoinedGroupIDListByUserID(userID string) ([]string, error) { if err != nil { return nil, err } - var groupIDList []string = make([]string, len(memberList)) + var groupIDList []string for _, v := range memberList { groupIDList = append(groupIDList, v.GroupID) }