mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Log out version when updating doc
This commit is contained in:
parent
eb9a3b314a
commit
50f2983912
2 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,8 @@ module.exports = DocManager =
|
|||
oldDocLines: doc?.lines
|
||||
newDocLines: lines
|
||||
rev: oldRev
|
||||
oldVersion: doc?.version
|
||||
newVersion: version
|
||||
}, "updating doc lines"
|
||||
MongoManager.upsertIntoDocCollection project_id, doc_id, lines, (error)->
|
||||
return callback(callback) if error?
|
||||
|
|
|
@ -196,6 +196,8 @@ describe "DocManager", ->
|
|||
oldDocLines: @oldDocLines
|
||||
newDocLines: @newDocLines
|
||||
rev: @doc.rev
|
||||
oldVersion: @version
|
||||
newVersion: @version
|
||||
"updating doc lines"
|
||||
)
|
||||
.should.equal true
|
||||
|
|
Loading…
Reference in a new issue