mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use a separate flag for reading from history
the overleaf.history object controls writing to the project history service, we need a separate flag to determine whether to read from it or from track changes.
This commit is contained in:
parent
17a180ea8e
commit
98fe352a8c
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ module.exports = HistoryController =
|
|||
# find out which type of history service this project uses
|
||||
ProjectDetailsHandler.getDetails project_id, (err, project) ->
|
||||
return next(err) if err?
|
||||
if project?.overleaf?.history?
|
||||
if project?.overleaf?.history?.display
|
||||
req.useProjectHistory = true
|
||||
else
|
||||
req.useProjectHistory = false
|
||||
|
|
Loading…
Reference in a new issue