From bb73b7e67573a2139628bdf504269a7322afebc7 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 29 Mar 2023 15:00:30 +0800 Subject: [PATCH] group --- pkg/common/db/controller/group.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/common/db/controller/group.go b/pkg/common/db/controller/group.go index 03afa964b..da2b3062d 100644 --- a/pkg/common/db/controller/group.go +++ b/pkg/common/db/controller/group.go @@ -225,8 +225,9 @@ func (g *groupDatabase) PageGroupMember(ctx context.Context, groupIDs []string, if err != nil { return 0, nil, err } + groupIDs = utils.Paginate(groupIDs, int(pageNumber), int(showNumber)) for _, groupID := range groupIDs { - groupMembers, err := g.cache.GetGroupMembersPage(ctx, groupID, nil, pageNumber, showNumber) + groupMembers, err := g.cache.GetGroupMembersInfo(ctx, groupID, []string{userID}) if err != nil { return 0, nil, err }