forked from Yara724/api
fix(workflows): resolve QA blockers and protect case evidence
Fix registrar signing, reviewer re-entry, replacement evidence freshness, owner decision and rating races, multipart objections, vehicle serialization and product reporting. Validate uploaded media with FFmpeg, serve evidence through expiring signed links, and add targeted regressions plus a dry-run repair for prematurely completed visit cases.
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { Type, Transform } from "class-transformer";
|
||||
import {
|
||||
IsArray,
|
||||
IsOptional,
|
||||
Validate,
|
||||
ValidateNested,
|
||||
} from "class-validator";
|
||||
import { Type, Transform, plainToInstance } from "class-transformer";
|
||||
import { IsArray, IsOptional, Validate, ValidateNested } from "class-validator";
|
||||
import { HasObjectionEntriesConstraint } from "src/common/validators/has-objection-entries.validator";
|
||||
import { NewPartDto, UserObjectionPartDto } from "./user-objection.dto";
|
||||
|
||||
@@ -28,7 +23,10 @@ export class UserObjectionV2Dto {
|
||||
@Transform(({ value }) => {
|
||||
if (typeof value === "string") {
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
const parsed = JSON.parse(value);
|
||||
return Array.isArray(parsed)
|
||||
? plainToInstance(UserObjectionPartDto, parsed)
|
||||
: parsed;
|
||||
} catch {
|
||||
return value;
|
||||
}
|
||||
@@ -50,7 +48,10 @@ export class UserObjectionV2Dto {
|
||||
@Transform(({ value }) => {
|
||||
if (typeof value === "string") {
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
const parsed = JSON.parse(value);
|
||||
return Array.isArray(parsed)
|
||||
? plainToInstance(NewPartDto, parsed)
|
||||
: parsed;
|
||||
} catch {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user