1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-14 20:14:18 +00:00

Add comment, explain flushing of doc to mongo

This commit is contained in:
Shane Kilkelly 2017-06-12 13:09:13 +01:00
parent ff4991284d
commit 0a491a4f13

View file

@ -17,6 +17,9 @@ module.exports = LabelsHandler =
callback(null, projectLabels)
getLabelsForDoc: (projectId, docId, callback=(err, docLabels)->) ->
# Flush doc first, because this action is often performed while
# a document is being edited by the client. By contrast,
# `getAllLabelsForProject` is called only when a project/editor is loaded
DocumentUpdaterHandler.flushDocToMongo projectId, docId, (err) ->
if err?
return callback(err)