Skip to content

Commit

Permalink
fix: bridge service response
Browse files Browse the repository at this point in the history
  • Loading branch information
riyasng12 committed Jan 3, 2024
1 parent 309f778 commit 4fc8191
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cli/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,12 @@ func (dive *DiveMultipleServiceResponse) EncodeToString() (string, error) {

type Services map[string]*DiveServiceResponse

type DiveBridgeResponse struct {
Responses map[string]interface{} `json:"bridge-response"`
}
type DiveBridgeResponse map[string]interface{}

type BridgeServices map[string]*DiveBridgeResponse

func (dive *DiveBridgeResponse) Decode(responseData []byte) (*DiveBridgeResponse, error) {
err := json.Unmarshal(responseData, &dive.Responses)
err := json.Unmarshal(responseData, &dive)
if err != nil {
return nil, WrapMessageToError(ErrDataUnMarshall, err.Error())
}
Expand Down

0 comments on commit 4fc8191

Please sign in to comment.