Просмотр исходного кода

Merge pull request #23433 from overleaf/em-do-not-store-content-hashes

Do not store content hashes in chunks

GitOrigin-RevId: 65a255b92f9c4e216ad5a1fb5fb3fa5a6b9158c4
Eric Mc Sween 1 год назад
Родитель
Сommit
3c1f20a6d1
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      services/history-v1/storage/lib/persist_changes.js

+ 4 - 0
services/history-v1/storage/lib/persist_changes.js

@@ -180,6 +180,10 @@ async function persistChanges(projectId, allChanges, limits, clientEndVersion) {
             actualHash,
           })
         }
+
+        // Remove the content hash from the change before storing it in the chunk.
+        // It was only useful for validation.
+        editOperation.contentHash = null
       }
     }
   }