fix: fix group getGroupMemberIDs is 0 err

pull/2100/head
Xinwei Xiong (cubxxw) 2 years ago
parent faa2bbb204
commit 30012a7c59

@ -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)

Loading…
Cancel
Save