Skip to content

Commit

Permalink
Add integration reference field to group copy method (#1283)
Browse files Browse the repository at this point in the history
The group copy method now includes the IntegrationReference field in its output. This change was made to ensure that the integration reference information is retained when a group instance is copied, which previously was not the case.
  • Loading branch information
bcmmbaga authored Nov 2, 2023
1 parent c99ae6f commit 8cf2866
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions management/server/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ func (g *Group) EventMeta() map[string]any {

func (g *Group) Copy() *Group {
group := &Group{
ID: g.ID,
Name: g.Name,
Issued: g.Issued,
Peers: make([]string, len(g.Peers)),
ID: g.ID,
Name: g.Name,
Issued: g.Issued,
Peers: make([]string, len(g.Peers)),
IntegrationReference: g.IntegrationReference,
}
copy(group.Peers, g.Peers)
return group
Expand Down

0 comments on commit 8cf2866

Please sign in to comment.