fix: fix group getGroupMemberIDs is 0 err

This commit is contained in:
Xinwei Xiong (cubxxw) 2024-03-14 19:51:31 +08:00
parent faa2bbb204
commit 30012a7c59

View File

@ -1006,7 +1006,7 @@ func (s *groupServer) SetGroupInfo(ctx context.Context, req *pbgroup.SetGroupInf
return nil, err return nil, err
} }
if group.Status == constant.GroupStatusDismissed { if group.Status == constant.GroupStatusDismissed {
return nil, errs.Wrap(errors.New("group dismissed")) return nil, errs.ErrDismissedAlready.Wrap("group dismissed")
} }
resp := &pbgroup.SetGroupInfoResp{} resp := &pbgroup.SetGroupInfoResp{}
count, err := s.db.FindGroupMemberNum(ctx, group.GroupID) count, err := s.db.FindGroupMemberNum(ctx, group.GroupID)