From 72e6f8bc99f696074ff586d1618010baa43594f6 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 18 Apr 2023 16:23:07 +0800 Subject: [PATCH] group --- internal/rpc/group/group.go | 1 - pkg/common/db/controller/group.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index cb7abab87..25f1c3203 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -634,7 +634,6 @@ func (s *groupServer) JoinGroup(ctx context.Context, req *pbGroup.JoinGroupReq) return nil, errs.ErrDismissedAlready.Wrap() } _, err = s.GroupDatabase.TakeGroupMember(ctx, req.GroupID, req.InviterUserID) - log.ZInfo(ctx, "Test-Info", "error", err, "type", fmt.Sprintf("%T", err), "eq", s.IsNotFound(err)) if err == nil { return nil, errs.ErrArgs.Wrap("already in group") } else if !s.IsNotFound(err) { diff --git a/pkg/common/db/controller/group.go b/pkg/common/db/controller/group.go index a920fb54e..58475c30b 100644 --- a/pkg/common/db/controller/group.go +++ b/pkg/common/db/controller/group.go @@ -276,7 +276,7 @@ func (g *groupDatabase) DeleteGroupMember(ctx context.Context, groupID string, u if err := g.groupMemberDB.NewTx(tx).Delete(ctx, groupID, userIDs); err != nil { return err } - return g.cache.DelGroupMembersHash(groupID).DelGroupMemberIDs(groupID).DelGroupsMemberNum(groupID).DelJoinedGroupID(userIDs...).ExecDel(ctx) + return g.cache.DelGroupMembersHash(groupID).DelGroupMemberIDs(groupID).DelGroupsMemberNum(groupID).DelJoinedGroupID(userIDs...).DelGroupMembersInfo(groupID, userIDs...).ExecDel(ctx) }) }