- added fields: longdescr, hoursworked, hoursplanned

This commit is contained in:
Paolo Arena
2019-03-30 02:58:19 +01:00
parent f4ad69674e
commit cadf2ef86a
3 changed files with 23 additions and 18 deletions

View File

@@ -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