diff --git a/src/services/tech-record-document-conversion.ts b/src/services/tech-record-document-conversion.ts index 57017e8..b4e4142 100644 --- a/src/services/tech-record-document-conversion.ts +++ b/src/services/tech-record-document-conversion.ts @@ -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'; @@ -244,19 +244,6 @@ const upsertVehicle = async ( techRecordDocument: TechRecordDocument, ): Promise => { - 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