Skip to content

Commit a372cb4

Browse files
authored
Capitalize status description (#913)
1 parent 999e2f4 commit a372cb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/src/importers/coors/court-conviction-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CourtConvictions extends BaseRecordUtils {
4040
conviction['_sourceRefCoorsId'] = sourceRefId;
4141

4242
conviction['recordType'] = 'Court Conviction';
43-
if (csvRow['enforcement_outcome'] === 'GTYJ') {
43+
if (csvRow['enforcement_outcome'] && csvRow['enforcement_outcome'] === 'GTYJ') {
4444
conviction['dateIssued'] = csvRow['ticket_date'] || null;
4545
} else {
4646
conviction['dateIssued'] = csvRow['final_decision_date'] || null;
@@ -83,7 +83,7 @@ class CourtConvictions extends BaseRecordUtils {
8383

8484
conviction['location'] = csvRow['location'] || '';
8585

86-
if (csvRow['enforcement_outcome'] === 'GTYJ') {
86+
if (csvRow['enforcement_outcome'] && csvRow['enforcement_outcome'] === 'GTYJ') {
8787
const PenaltyType = 'Fined';
8888
const PenaltyValueType = 'Dollars';
8989

api/src/integrations/nris-emli/datasource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ class NrisDataSource {
266266
}
267267

268268
if (record.assessmentSubStatus === 'Closed') {
269-
newRecord.outcomeDescription = 'Inspection status: Closed';
269+
newRecord.outcomeDescription = 'Inspection Status: Closed';
270270
} else {
271-
newRecord.outcomeDescription = 'Inspection status: Open';
271+
newRecord.outcomeDescription = 'Inspection Status: Open';
272272
}
273273

274274
defaultLog.info('Processed:', record.assessmentId);

0 commit comments

Comments
 (0)