overleaf/services/web/app/coffee/Features/InactiveData/InactiveProjectController.coffee

12 lines
245 B
CoffeeScript
Raw Normal View History

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