overleaf/services/web/app/coffee/Features/Project/ProjectUpdateHandler.coffee

11 lines
297 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
Project = require('../../models/Project').Project
logger = require('logger-sharelatex')
module.exports =
markAsUpdated : (project_id, callback)->
conditions = {_id:project_id}
update = {lastUpdated:Date.now()}
Project.update conditions, update, {}, (err)->
if callback?
callback()