diff --git a/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee b/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee index 392e5e2f4e..03db848838 100644 --- a/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee +++ b/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee @@ -6,7 +6,7 @@ module.exports = deactivateOldProjects: (req, res)-> logger.log "recived request to deactivate old projects" - numberOfProjectsToArchive = req.body.numberOfProjectsToArchive + numberOfProjectsToArchive = parseInt(req.body.numberOfProjectsToArchive, 10) ageOfProjects = req.body.ageOfProjects InactiveProjectManager.deactivateOldProjects numberOfProjectsToArchive, ageOfProjects, (err, projectsDeactivated)-> if err?