refactor(f4): remove inspection legacy persistence shim
This commit is contained in:
@@ -318,9 +318,6 @@ export class InspectionVisitsService {
|
|||||||
const code = await nextInspectionVisitCode(manager, plannedStartAt);
|
const code = await nextInspectionVisitCode(manager, plannedStartAt);
|
||||||
const visit = manager.getRepository(InspectionVisit).create({
|
const visit = manager.getRepository(InspectionVisit).create({
|
||||||
code,
|
code,
|
||||||
// Compatibilidad de persistencia temporal: estas dos columnas legacy se
|
|
||||||
// conservan hasta eliminar sus últimas lecturas históricas del repositorio.
|
|
||||||
title: code,
|
|
||||||
objective: null,
|
objective: null,
|
||||||
status: InspectionVisitStatus.DRAFT,
|
status: InspectionVisitStatus.DRAFT,
|
||||||
scopeAssetId: operationalAreaId,
|
scopeAssetId: operationalAreaId,
|
||||||
@@ -328,7 +325,6 @@ export class InspectionVisitsService {
|
|||||||
operatorCompanyId,
|
operatorCompanyId,
|
||||||
leadInspectorUserId: dto.leadInspectorUserId,
|
leadInspectorUserId: dto.leadInspectorUserId,
|
||||||
plannedStartAt,
|
plannedStartAt,
|
||||||
plannedEndAt: null,
|
|
||||||
actualStartedAt: null,
|
actualStartedAt: null,
|
||||||
actualClosedAt: null,
|
actualClosedAt: null,
|
||||||
instructions: null,
|
instructions: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user