Skip to content

Commit 9c02135

Browse files
author
Vikas Agarwal
committed
fixed bug which was causing null values in project id
1 parent 21582b2 commit 9c02135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/projects/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function createProjectAndPhases(req, project, projectTemplate) {
9292
_.assign(
9393
_.omit(phase, 'products'),
9494
{
95-
projectId: project.id,
95+
projectId: newProject.id,
9696
updatedBy: req.authUser.userId,
9797
createdBy: req.authUser.userId,
9898
},
@@ -114,7 +114,7 @@ function createProjectAndPhases(req, project, projectTemplate) {
114114
// id need to map to templateId
115115
_.assign(_.omit(product, ['id', 'productKey']), {
116116
phaseId: newPhase.id,
117-
projectId: project.id,
117+
projectId: newProject.id,
118118
templateId: product.id,
119119
updatedBy: req.authUser.userId,
120120
createdBy: req.authUser.userId,

0 commit comments

Comments
 (0)