(ctx context.Context, id string)
| 30 | } |
| 31 | |
| 32 | func (action *MembershipSetCurrent) Run(ctx context.Context, id string) (*MembershipItem, error) { |
| 33 | client := pb.NewUserServiceClient(action.cfg.CPConnection) |
| 34 | resp, err := client.SetCurrentMembership(ctx, &pb.SetCurrentMembershipRequest{MembershipId: id}) |
| 35 | if err != nil { |
| 36 | return nil, err |
| 37 | } |
| 38 | |
| 39 | return pbMembershipItemToAction(resp.Result), nil |
| 40 | } |
nothing calls this directly
no test coverage detected