diff --git a/models/peer/peer.go b/models/peer/peer.go index 54c3387..502d5c9 100644 --- a/models/peer/peer.go +++ b/models/peer/peer.go @@ -70,7 +70,7 @@ type Peer struct { WalletAddress string `json:"wallet_address" bson:"wallet_address" validate:"required"` // WalletAddress is the wallet address of the peer PublicKey string `json:"public_key" bson:"public_key" validate:"required"` // PublicKey is the public key of the peer State PeerState `json:"state" bson:"state" default:"0"` - Relation PeerRelation `json:"relation" bson:"state" default:"0"` + Relation PeerRelation `json:"relation" bson:"relation" default:"0"` ServicesState map[string]int `json:"services_state,omitempty" bson:"services_state,omitempty"` FailedExecution []PeerExecution `json:"failed_execution" bson:"failed_execution"` // FailedExecution is the list of failed executions, to be retried }