Merge pull request #2670 from overleaf/em-convert-doc-to-file-rev

Adjust the file rev when converting a doc to a file

GitOrigin-RevId: 6765bcac1fcd4f4db35f9ce88af1f201f5da509a
This commit is contained in:
Eric Mc Sween
2020-03-16 07:31:10 -04:00
committed by Copybot
parent 44cb795050
commit 9f3b2d2cdc
2 changed files with 4 additions and 3 deletions

View File

@@ -1555,7 +1555,7 @@ const ProjectEntityUpdateHandler = {
}
FileStoreHandler.uploadFileFromDisk(
projectId,
{ name: doc.name },
{ name: doc.name, rev: rev + 1 },
fsPath,
(err, fileStoreUrl, fileRef) => {
if (err) {