diff --git a/services/docstore/app/js/DocArchiveManager.js b/services/docstore/app/js/DocArchiveManager.js index c0888f249b..4dc7086258 100644 --- a/services/docstore/app/js/DocArchiveManager.js +++ b/services/docstore/app/js/DocArchiveManager.js @@ -172,7 +172,7 @@ async function destroyProject(projectId) { async function _streamToBuffer(projectId, docId, stream) { const chunks = [] - let size + let size = 0 let logged = false const logIfTooLarge = finishedReading => { if (size <= Settings.max_doc_length) return