- added fields: longdescr, hoursworked, hoursplanned
This commit is contained in:
@@ -79,7 +79,7 @@ router.patch('/:id', authenticate, (req, res) => {
|
||||
|
||||
|
||||
Project.findByIdAndUpdate(id, { $set: body }, { new: true }).then((project) => {
|
||||
tools.mylogshow(' PROJECT TO MODIFY: ', project.descr, project.expiring_at);
|
||||
tools.mylogshow(' PROJECT TO MODIFY: ', project.descr, body);
|
||||
if (!project) {
|
||||
return res.status(404).send();
|
||||
}
|
||||
@@ -146,7 +146,7 @@ function calcProjects(obj) {
|
||||
|
||||
// sum the progression
|
||||
|
||||
myarr[indrec].progressCalc = 1;
|
||||
myarr[indrec].progressCalc = Math.round(Math.random() * 100);
|
||||
}
|
||||
return myarr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user