Skip to content

Commit

Permalink
show both requested and joined members in FetchUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Dec 20, 2023
1 parent 2c86418 commit 6f7a4e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,8 @@ func (bl *FxBlockchain) FetchUsersAndPopulateSets(ctx context.Context, topicStri
//Get the list of both join requests and joined members for the pool
// Create a struct for the POST req
req := PoolUserListRequest{
PoolID: topic,
PoolID: topic,
RequestPoolID: topic,
}

// Call the existing function to make the request
Expand Down
3 changes: 2 additions & 1 deletion blockchain/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ type PoolListRequest struct {
}

type PoolUserListRequest struct {
PoolID int `json:"pool_id"`
PoolID int `json:"pool_id"`
RequestPoolID int `json:"request_pool_id"`
}

type User struct {
Expand Down

0 comments on commit 6f7a4e5

Please sign in to comment.