fix: close F4 pre-merge review gaps

This commit is contained in:
github-actions[bot]
2026-09-08 18:06:16 +00:00
parent e1e44e6352
commit 844c1a950f
6 changed files with 48 additions and 12 deletions
@@ -549,14 +549,7 @@ export class InspectionClosingService {
if (companyOutcomes.length !== 1) {
throw new ConflictException({
code: 'INSPECTION_ACT_COMPANY_OUTCOME_REQUIRED',
message: 'Debe existir exactamente una firma, disidencia o negativa del responsable de la empresa',
});
}
const companyOutcome = companyOutcomes[0];
if (companyOutcome.status === InspectionActSignatureStatus.ABSENT) {
throw new ConflictException({
code: 'INSPECTION_ACT_COMPANY_MANIFESTATION_PENDING',
message: 'La ausencia no reemplaza la firma o negativa; la manifestación de la empresa sigue pendiente',
message: 'Debe existir exactamente una firma, disidencia, negativa o ausencia documentada del responsable de la empresa',
});
}