overleaf/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee
2015-08-13 22:40:28 +01:00

11 lines
245 B
CoffeeScript

InactiveProjectManager = require("./InactiveProjectManager")
module.exports =
deactivateOldProjects: (req, res)->
InactiveProjectManager.deactivateOldProjects 10, (err)->
if err?
res.sendStatus(500)
else
res.sendStatus(200)