Skip to content

Commit

Permalink
fix dto object
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>
  • Loading branch information
RealHarshThakur committed Nov 7, 2024
1 parent 48ca306 commit 5caae03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions fake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ func NewFakeClient() (*FakeClient, error) {

// ListMemberships implemented in a fake way for automated tests
func (c *FakeClient) ListMemberships() (*MembershipResponse, error) {
return &MembershipResponse{
Accounts: c.OrganisationAccounts,
}, nil
return &MembershipResponse{}, nil
}

// Ping implemented in a fake way for automated tests
Expand Down
4 changes: 2 additions & 2 deletions membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

// MembershipResponse is the response for the memberships of a user
type MembershipResponse struct {
Accounts []Account
Organisations []Organisation
Accounts []MembershipAccount
Organisations []MembershipOrganisation
}

// MembershipAccount is the DTO for an account.
Expand Down

0 comments on commit 5caae03

Please sign in to comment.