Merge pull request #1511 from sharelatex/as-inc-linked-file-rev

Increment rev of linked file to fix bug where dropbox not syncing

GitOrigin-RevId: 6779d10f9ed64eeca901590cc888f35382a2b284
This commit is contained in:
Brian Gough
2019-03-11 10:58:21 +00:00
committed by James Allen
parent e379691767
commit 2ab346e762
4 changed files with 12 additions and 6 deletions
@@ -391,7 +391,7 @@ describe 'ProjectEntityUpdateHandler', ->
@FileStoreHandler.uploadFileFromDisk = sinon.stub().yields(null, @newFileUrl)
@newFile = _id: new_file_id, name: "dummy-upload-filename", rev: 0, linkedFileData: @linkedFileData
@oldFile = _id: file_id
@oldFile = _id: file_id, rev: 3
@path = "/path/to/file"
@ProjectEntityMongoUpdateHandler._insertDeletedFileReference = sinon.stub().yields()
@ProjectEntityMongoUpdateHandler.replaceFileWithNew = sinon.stub().yields(null, @oldFile, @project, fileSystem: @path)
@@ -413,7 +413,7 @@ describe 'ProjectEntityUpdateHandler', ->
project_id: project_id
project_name: @project.name
file_id: new_file_id
rev: @newFile.rev + 1
rev: @oldFile.rev + 1
path: @path
})
.should.equal true