Merge pull request #4801 from overleaf/ae-resync-editable-file

Use a file hash to decide if a file is editable when resyncing

GitOrigin-RevId: 57d78b3d73bf2595070a7c7eb7ec97eeece3a163
This commit is contained in:
Brian Gough
2021-08-23 15:12:08 +01:00
committed by Copybot
parent 1f01a44637
commit e6cae53357
2 changed files with 3 additions and 0 deletions

View File

@@ -1929,6 +1929,7 @@ describe('ProjectEntityUpdateHandler', function () {
{
file: {
_id: fileId,
hash: '123456',
},
path: 'universe.png',
},
@@ -1970,6 +1971,7 @@ describe('ProjectEntityUpdateHandler', function () {
file: fileId,
path: 'universe.png',
url: `www.filestore.test/${projectId}/${fileId}`,
_hash: '123456',
},
]
this.DocumentUpdaterHandler.resyncProjectHistory