mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #12375 from overleaf/jpa-fix-size
[docstore] initialize size with 0 GitOrigin-RevId: 9716cecb2ea87bb3596b3cdb64e9bd9f61dc86db
This commit is contained in:
parent
397fbd47c2
commit
e983f70730
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue