Browse Source

add old json tag

abhishek9686 7 tháng trước cách đây
mục cha
commit
1c456b3c55
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      models/mqtt.go

+ 2 - 2
models/mqtt.go

@@ -29,8 +29,8 @@ type HostPeerUpdate struct {
 
 type OldPeerUpdateFields struct {
 	NodePeers         []wgtypes.PeerConfig `json:"peers" bson:"peers" yaml:"peers"`
-	OldPeers          []wgtypes.PeerConfig
-	EndpointDetection bool `json:"endpoint_detection"`
+	OldPeers          []wgtypes.PeerConfig `json:"Peers"`
+	EndpointDetection bool                 `json:"endpoint_detection"`
 }
 
 type FwRule struct {