mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 13:59:09 +02:00
ignore associations on create
This commit is contained in:
@@ -1831,7 +1831,7 @@ func (s *SqlStore) SaveGroup(ctx context.Context, lockStrength LockingStrength,
|
|||||||
group = group.Copy()
|
group = group.Copy()
|
||||||
group.StoreGroupPeers()
|
group.StoreGroupPeers()
|
||||||
|
|
||||||
if err := s.db.Save(group).Error; err != nil {
|
if err := s.db.Omit(clause.Associations).Save(group).Error; err != nil {
|
||||||
log.WithContext(ctx).Errorf("failed to save group to store: %v", err)
|
log.WithContext(ctx).Errorf("failed to save group to store: %v", err)
|
||||||
return status.Errorf(status.Internal, "failed to save group to store")
|
return status.Errorf(status.Internal, "failed to save group to store")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user