DismissGroup

test-errcode
withchao 2 years ago
parent 16f0d0875d
commit 22a93d814c

@ -1068,9 +1068,9 @@ func (s *groupServer) DismissGroup(ctx context.Context, req *pbGroup.DismissGrou
if err != nil { if err != nil {
return nil, err return nil, err
} }
if group.Status == constant.GroupStatusDismissed { //if group.Status == constant.GroupStatusDismissed {
return nil, errs.ErrArgs.Wrap("group status is dismissed") // return nil, errs.ErrArgs.Wrap("group status is dismissed")
} //}
if err := s.GroupDatabase.DismissGroup(ctx, req.GroupID, req.DeleteMember); err != nil { if err := s.GroupDatabase.DismissGroup(ctx, req.GroupID, req.DeleteMember); err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save