Tidied up the project

This commit is contained in:
2026-05-30 08:59:57 +03:30
parent 5c372947dd
commit 10df869efb
19 changed files with 7064 additions and 4620 deletions

View File

@@ -1,5 +1,5 @@
import { Prop, Schema } from "@nestjs/mongoose";
import { v4 as uuidv4 } from "uuid";
import { randomUUID } from "node:crypto";
@Schema({ versionKey: false, _id: false })
export class ImageRequiredModel {
@@ -20,7 +20,7 @@ export class ImageRequiredModel {
constructor(claimFile: any[]) {
this.aroundTheCar.forEach((a) => {
Object.assign(a, {
partId: uuidv4(),
partId: randomUUID(),
imageId: null,
aiReport: {},
upload: false,
@@ -28,7 +28,7 @@ export class ImageRequiredModel {
});
this.selectPartOfCar = claimFile.map((c, idx) =>
Object.assign(c, {
partId: uuidv4(),
partId: randomUUID(),
aiReport: {},
imageId: null,
upload: false,