@@ -106,11 +106,12 @@ export default class FieldRule {
106106 fr . actions = fr . actions . map ( ( actions : { target_field : any } ) => {
107107 if ( ! this . schemaMap . includes ( actions . target_field ) ) {
108108 this . log ( $t ( auditMsg . FIELD_RULE_TARGET_ABSENT , { target_field : actions . target_field , ctUid : schema . uid } ) , 'error' ) ;
109- console . log ( this . missingRefs [ this . currentUid ] )
110- this . missingRefs [ this . currentUid ] . push ( { action : actions , ctUid : this . currentUid , fixStatus :'Fixed' } ) ;
109+ this . missingRefs [ this . currentUid ] . push ( { ctUid : this . currentUid , action : actions , fixStatus :'Fixed' } ) ;
110+ this . log ( $t ( auditFixMsg . FIELD_RULE_FIX_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
111+ this . log ( $t ( auditMsg . FIELD_RULE_TARGET_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
111112 return
112113 } else {
113- this . log ( $t ( auditMsg . FIELD_RULE_TARGE_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
114+ this . log ( $t ( auditMsg . FIELD_RULE_TARGET_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
114115 return actions ;
115116 }
116117 } ) . filter ( ( v : any ) => v ) ;
@@ -119,18 +120,20 @@ export default class FieldRule {
119120 if ( ! this . schemaMap . includes ( actions . operand_field ) ) {
120121 this . log ( $t ( auditMsg . FIELD_RULE_CONDITION_ABSENT , { condition_field : actions . operand_field } ) , 'error' ) ;
121122 this . missingRefs [ this . currentUid ] . push ( {
122- action : actions ,
123123 ctUid : this . currentUid ,
124+ action : actions ,
124125 fixStatus : "Fixed"
125126 } ) ;
127+ this . log ( $t ( auditFixMsg . FIELD_RULE_FIX_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
128+ this . log ( $t ( auditMsg . FIELD_RULE_TARGET_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
126129 return
127130 } else {
128131 this . log ( $t ( auditMsg . FIELD_RULE_CONDITION_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
129132 return actions ;
130133 }
131134 } ) . filter ( ( v :any ) => v ) ;
135+
132136 count = count + 1 ;
133- console . log ( fr . actions . length , fr . conditions . length , "LENGTH" ) ;
134137 if ( fr . actions . length && fr . conditions . length ) {
135138 return fr ;
136139 }
@@ -145,7 +148,7 @@ export default class FieldRule {
145148 this . log ( $t ( auditMsg . FIELD_RULE_TARGET_ABSENT , { target_field : actions . target_field , ctUid : schema . uid } ) , 'error' ) ;
146149 this . missingRefs [ this . currentUid ] . push ( { action : actions , ctUid : this . currentUid } ) ;
147150 } else {
148- this . log ( $t ( auditMsg . FIELD_RULE_TARGE_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
151+ this . log ( $t ( auditMsg . FIELD_RULE_TARGET_SCAN_MESSAGE , { num : count . toString ( ) , ctUid : schema . uid } ) , 'info' ) ;
149152 }
150153 } ) ;
151154
0 commit comments