mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
8 lines
No EOL
383 B
CoffeeScript
8 lines
No EOL
383 B
CoffeeScript
DocumentUpdaterHandler = require "../DocumentUpdater/DocumentUpdaterHandler"
|
|
DocstoreManager = require "../Docstore/DocstoreManager"
|
|
|
|
module.exports = RangesManager =
|
|
getAllRanges: (project_id, callback = (error, docs) ->) ->
|
|
DocumentUpdaterHandler.flushProjectToMongo project_id, (error) ->
|
|
return callback(error) if error?
|
|
DocstoreManager.getAllRanges project_id, callback |