mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
changed post to deactivate projects to set params via body rather than query params
This commit is contained in:
parent
50fc886c94
commit
a777fcc5a6
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ module.exports =
|
||||||
|
|
||||||
deactivateOldProjects: (req, res)->
|
deactivateOldProjects: (req, res)->
|
||||||
logger.log "recived request to deactivate old projects"
|
logger.log "recived request to deactivate old projects"
|
||||||
numberOfProjectsToArchive = req.query.limit
|
numberOfProjectsToArchive = req.body.numberOfProjectsToArchive
|
||||||
ageOfProjects = req.query.daysOld
|
ageOfProjects = req.body.ageOfProjects
|
||||||
InactiveProjectManager.deactivateOldProjects numberOfProjectsToArchive, ageOfProjects, (err, projectsDeactivated)->
|
InactiveProjectManager.deactivateOldProjects numberOfProjectsToArchive, ageOfProjects, (err, projectsDeactivated)->
|
||||||
if err?
|
if err?
|
||||||
res.sendStatus(500)
|
res.sendStatus(500)
|
||||||
|
|
Loading…
Reference in a new issue