From 4fc8191c6494edede8afb61ed5470af478292d2b Mon Sep 17 00:00:00 2001 From: riyasng12 Date: Wed, 3 Jan 2024 18:24:57 +0530 Subject: [PATCH] fix: bridge service response --- cli/common/types.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/common/types.go b/cli/common/types.go index ac465da2..ad27bd38 100644 --- a/cli/common/types.go +++ b/cli/common/types.go @@ -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()) }