From 00625eabd6315cd5559e765cccf8d9ce653c497a Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 26 Aug 2024 16:10:22 +0200 Subject: [PATCH] simplify call to peer --- models/workspace/shared/shared_workspace.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/models/workspace/shared/shared_workspace.go b/models/workspace/shared/shared_workspace.go index 1759ec0..4b4a6e0 100644 --- a/models/workspace/shared/shared_workspace.go +++ b/models/workspace/shared/shared_workspace.go @@ -18,15 +18,15 @@ type SharedWorkspace struct { Version string `json:"version,omitempty" bson:"version,omitempty"` Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"` - Workspaces []string `json:"workspaces,omitempty" bson:"workspaces,omitempty"` - Workflows []string `json:"workflows,omitempty" bson:"workflows,omitempty"` - Peers []string `json:"peers,omitempty" bson:"peers,omitempty"` - Rules []string `json:"rules,omitempty" bson:"rules,omitempty"` + Workspaces []string `json:"workspaces" bson:"workspaces"` + Workflows []string `json:"workflows" bson:"workflows"` + Peers []string `json:"peers" bson:"peers"` + Rules []string `json:"rules" bson:"rules"` - SharedRules []*rule.Rule `json:"shared_rules,omitempty"` - SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty"` - SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty"` - SharedPeers []*peer.Peer `json:"shared_peers,omitempty"` + SharedRules []*rule.Rule `json:"shared_rules,omitempty" bson:"-"` + SharedWorkspaces []*workspace.Workspace `json:"shared_workspaces,omitempty" bson:"-"` + SharedWorkflows []*w.Workflow `json:"shared_workflows,omitempty" bson:"-"` + SharedPeers []*peer.Peer `json:"shared_peers,omitempty" bson:"-"` } func (ao *SharedWorkspace) GetID() string {