Skip to content

Commit

Permalink
feat(cb2-13479): removed logs used for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs committed Sep 11, 2024
1 parent 52b9a7e commit c5349f9
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/services/tech-record-document-conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
executePartialUpsertIfNotExists,
selectRecordIds,
} from './sql-execution';
import { getConnectionPool, QueryResponse } from './connection-pool';
import { getConnectionPool } from './connection-pool';
import { EntityConverter } from './entity-conversion';
import { debugLog } from './logger';
import { vinCleanser } from '../utils/cleanser';
Expand Down Expand Up @@ -244,19 +244,6 @@ const upsertVehicle = async (
techRecordDocument: TechRecordDocument,
): Promise<number> => {

debugLog(`techRecordDocument.techRecord length is: ${techRecordDocument.techRecord?.length}`);
if (techRecordDocument.techRecord) {
debugLog(`statusCode of techRecordDocument.techRecord[0].statusCode is: ${techRecordDocument.techRecord[0].statusCode}`);
// TODO will remove this IF and debug log after testing
if (techRecordDocument.techRecord.length > 1) {
debugLog(`remaining statusCodes in array of techRecordDocument.techRecord in order...`)
techRecordDocument.techRecord.forEach((tr) => {
`statusCode is ${tr.statusCode}`
})
}
} else {
debugLog(`techRecordDocument is empty or undefined: ${techRecordDocument.techRecord}`);
}
if (techRecordDocument.techRecord && techRecordDocument.techRecord[0].statusCode === 'archived') {
debugLog('upsertTechRecords: Retrieving vehicle...');
// retrieve records associated with systemNumber
Expand Down

0 comments on commit c5349f9

Please sign in to comment.