Merge pull request #19790 from overleaf/jpa-silence-missing

[project-history] silence warning due to missing web hash

GitOrigin-RevId: 04ff878c1b356333ff9d515af6a5cba8b31a1ff2
This commit is contained in:
Jakob Ackermann 2024-08-05 12:04:18 +02:00 committed by Copybot
parent d21874b076
commit 074de0cc02

View file

@ -317,7 +317,7 @@ export function createBlobForUpdate(projectId, historyId, update, callback) {
if (err) {
return callback(err)
}
if (update.hash !== fileHash) {
if (update.hash && update.hash !== fileHash) {
logger.warn(
{ projectId, fileId, webHash: update.hash, fileHash },
'hash mismatch between web and project-history'