Skip to content

Commit

Permalink
Merge branch 'main' into PIMS-2246
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharala-Perumal authored Dec 4, 2024
2 parents d777647 + 5412bb2 commit 43edf0e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
14 changes: 7 additions & 7 deletions express-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,31 @@
"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",
"@types/express": "4.17.20",
"@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"
}
}
17 changes: 10 additions & 7 deletions express-api/src/services/projects/projectsServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
}
};
Expand Down

0 comments on commit 43edf0e

Please sign in to comment.