File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class CourtConvictions extends BaseRecordUtils {
40
40
conviction [ '_sourceRefCoorsId' ] = sourceRefId ;
41
41
42
42
conviction [ 'recordType' ] = 'Court Conviction' ;
43
- if ( csvRow [ 'enforcement_outcome' ] === 'GTYJ' ) {
43
+ if ( csvRow [ 'enforcement_outcome' ] && csvRow [ 'enforcement_outcome' ] === 'GTYJ' ) {
44
44
conviction [ 'dateIssued' ] = csvRow [ 'ticket_date' ] || null ;
45
45
} else {
46
46
conviction [ 'dateIssued' ] = csvRow [ 'final_decision_date' ] || null ;
@@ -83,7 +83,7 @@ class CourtConvictions extends BaseRecordUtils {
83
83
84
84
conviction [ 'location' ] = csvRow [ 'location' ] || '' ;
85
85
86
- if ( csvRow [ 'enforcement_outcome' ] === 'GTYJ' ) {
86
+ if ( csvRow [ 'enforcement_outcome' ] && csvRow [ 'enforcement_outcome' ] === 'GTYJ' ) {
87
87
const PenaltyType = 'Fined' ;
88
88
const PenaltyValueType = 'Dollars' ;
89
89
Original file line number Diff line number Diff line change @@ -266,9 +266,9 @@ class NrisDataSource {
266
266
}
267
267
268
268
if ( record . assessmentSubStatus === 'Closed' ) {
269
- newRecord . outcomeDescription = 'Inspection status : Closed' ;
269
+ newRecord . outcomeDescription = 'Inspection Status : Closed' ;
270
270
} else {
271
- newRecord . outcomeDescription = 'Inspection status : Open' ;
271
+ newRecord . outcomeDescription = 'Inspection Status : Open' ;
272
272
}
273
273
274
274
defaultLog . info ( 'Processed:' , record . assessmentId ) ;
You can’t perform that action at this time.
0 commit comments