mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
10 lines
375 B
CoffeeScript
10 lines
375 B
CoffeeScript
HistoryManager = require "./HistoryManager"
|
|
logger = require "logger-sharelatex"
|
|
|
|
module.exports = HttpController =
|
|
flushUpdatesWithLock: (req, res, next = (error) ->) ->
|
|
doc_id = req.params.doc_id
|
|
logger.log doc_id: doc_id, "compressing doc history"
|
|
HistoryManager.processUncompressedUpdatesWithLock doc_id, (error) ->
|
|
return next(error) if error?
|
|
res.send 204
|