Explorar o código

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 hai 1 ano
pai
achega
3c1f20a6d1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
       }
     }
   }