Log out version when updating doc

This commit is contained in:
James Allen 2016-11-29 16:49:35 +00:00
parent eb9a3b314a
commit 50f2983912
2 changed files with 4 additions and 0 deletions

View file

@ -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?

View file

@ -196,6 +196,8 @@ describe "DocManager", ->
oldDocLines: @oldDocLines
newDocLines: @newDocLines
rev: @doc.rev
oldVersion: @version
newVersion: @version
"updating doc lines"
)
.should.equal true