mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #593 from sharelatex/bg-fix-inactive-projects-request
avoid error when passing as limit in mongo query
This commit is contained in:
commit
5430c8a3c2
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue