Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Apr 11, 2022
1 parent 95cae23 commit 30f7da3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gql/resolvers/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

func (r *queryResolver) Channel(ctx context.Context, name string, mspID string, user string) (*models.Channel, error) {
sdkContext := r.FabricSDK.Context(
fabsdk.WithUser("admin"),
fabsdk.WithOrg("euipomsp"),
fabsdk.WithUser(user),
fabsdk.WithOrg(mspID),
)
resClient, err := resmgmt.New(sdkContext)
if err != nil {
Expand All @@ -36,8 +36,8 @@ func (r *queryResolver) Channel(ctx context.Context, name string, mspID string,
}
channelProvider := r.FabricSDK.ChannelContext(
name,
fabsdk.WithUser("admin"),
fabsdk.WithOrg("euipomsp"),
fabsdk.WithUser(user),
fabsdk.WithOrg(mspID),
)
ledgerClient, err := ledger.New(channelProvider)
if err != nil {
Expand Down

0 comments on commit 30f7da3

Please sign in to comment.