diff --git a/express-api/package.json b/express-api/package.json index 50c2468ee..b730bb1f5 100644 --- a/express-api/package.json +++ b/express-api/package.json @@ -44,8 +44,8 @@ "zod": "3.23.3" }, "devDependencies": { - "@eslint/js": "9.15.0", - "@faker-js/faker": "9.2.0", + "@eslint/js": "9.16.0", + "@faker-js/faker": "9.3.0", "@types/compression": "1.7.4", "@types/cookie-parser": "1.4.5", "@types/cors": "2.8.15", @@ -53,22 +53,22 @@ "@types/jest": "29.5.10", "@types/morgan": "1.9.9", "@types/multer": "1.4.11", - "@types/node": "22.9.0", + "@types/node": "22.10.1", "@types/nunjucks": "3.2.6", "@types/supertest": "6.0.2", "@types/swagger-jsdoc": "6.0.4", "@types/swagger-ui-express": "4.1.6", "cross-env": "7.0.3", - "eslint": "9.15.0", + "eslint": "9.16.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.2.1", "jest": "29.7.0", "nodemon": "3.1.0", - "prettier": "3.3.0", + "prettier": "3.4.1", "supertest": "7.0.0", "ts-jest": "29.2.0", "tsc-alias": "1.8.8", - "typescript": "5.6.2", - "typescript-eslint": "8.15.0" + "typescript": "5.7.2", + "typescript-eslint": "8.17.0" } } diff --git a/express-api/src/services/projects/projectsServices.ts b/express-api/src/services/projects/projectsServices.ts index 8952e287b..d6ab7f9a6 100644 --- a/express-api/src/services/projects/projectsServices.ts +++ b/express-api/src/services/projects/projectsServices.ts @@ -552,13 +552,16 @@ const handleProjectAgencyResponses = async ( ); await queryRunner.manager.save( ProjectAgencyResponse, - newProject.AgencyResponses.map((resp) => ({ - ...resp, - ProjectId: newProject.Id, - CreatedById: newProject.CreatedById, - DeletedById: null, - DeletedOn: null, - })), + newProject.AgencyResponses.map( + (resp) => + ({ + ...resp, + ProjectId: newProject.Id, + CreatedById: newProject.CreatedById, + DeletedById: null, + DeletedOn: null, + }) as ProjectAgencyResponse, + ), ); } };