@@ -540,16 +540,16 @@ func (s *ImportExportService) ExportGroup(groupID uint) (*GroupExportData, error
540540 result .ChildGroups = make ([]ChildGroupExport , 0 , len (childGroups ))
541541 for _ , cg := range childGroups {
542542 childExport := ChildGroupExport {
543- Name : cg .Name ,
544- DisplayName : cg .DisplayName ,
545- Description : cg .Description ,
546- Enabled : cg .Enabled ,
547- ProxyKeys : cg .ProxyKeys ,
548- Sort : cg .Sort ,
549- TestModel : cg .TestModel ,
550- ModelMapping : cg .ModelMapping ,
551- ModelRedirectStrict : cg .ModelRedirectStrict ,
552- Keys : childKeysMap [cg .ID ],
543+ Name : cg .Name ,
544+ DisplayName : cg .DisplayName ,
545+ Description : cg .Description ,
546+ Enabled : cg .Enabled ,
547+ ProxyKeys : cg .ProxyKeys ,
548+ Sort : cg .Sort ,
549+ TestModel : cg .TestModel ,
550+ ModelMapping : cg .ModelMapping ,
551+ ModelRedirectStrict : cg .ModelRedirectStrict ,
552+ Keys : childKeysMap [cg .ID ],
553553 }
554554
555555 // Export JSON fields as raw JSON to preserve structure
@@ -752,19 +752,19 @@ func (s *ImportExportService) importChildGroups(tx *gorm.DB, parentGroupID uint,
752752
753753 // Create child group with inherited channel_type from parent
754754 childGroup := models.Group {
755- Name : childName ,
756- DisplayName : childData .DisplayName ,
757- Description : childData .Description ,
758- GroupType : "standard" ,
759- ChannelType : parentChannelType , // Inherit from parent
760- Enabled : childData .Enabled ,
761- ParentGroupID : & parentGroupID ,
762- ProxyKeys : childData .ProxyKeys ,
763- Sort : childData .Sort ,
764- Upstreams : []byte (upstreamsJSON ),
765- TestModel : testModel , // Use fallback if empty
766- ModelMapping : childData .ModelMapping ,
767- ModelRedirectStrict : childData .ModelRedirectStrict ,
755+ Name : childName ,
756+ DisplayName : childData .DisplayName ,
757+ Description : childData .Description ,
758+ GroupType : "standard" ,
759+ ChannelType : parentChannelType , // Inherit from parent
760+ Enabled : childData .Enabled ,
761+ ParentGroupID : & parentGroupID ,
762+ ProxyKeys : childData .ProxyKeys ,
763+ Sort : childData .Sort ,
764+ Upstreams : []byte (upstreamsJSON ),
765+ TestModel : testModel , // Use fallback if empty
766+ ModelMapping : childData .ModelMapping ,
767+ ModelRedirectStrict : childData .ModelRedirectStrict ,
768768 }
769769
770770 // Import JSON fields from exported data
0 commit comments