overleaf/services/web/app/coffee/Features/TrackChanges/TrackChangesManager.coffee

5 lines
248 B
CoffeeScript

Project = require("../../models/Project").Project
module.exports = TrackChangesManager =
toggleTrackChanges: (project_id, track_changes_on, callback = (error) ->) ->
Project.update {_id: project_id}, {track_changes: track_changes_on}, callback