Merge pull request #12205 from overleaf/em-camel-case-docstore

Camel case variables in docstore

GitOrigin-RevId: e6c2015cfb63ce125fd32ba8b4f904712b2bb9aa
This commit is contained in:
Eric Mc Sween
2023-03-17 09:05:12 +00:00
committed by Copybot
parent df3c7e48ab
commit 49f1312b27
8 changed files with 157 additions and 188 deletions
@@ -48,10 +48,7 @@ async function archiveDoc(projectId, docId) {
return
}
logger.debug(
{ project_id: projectId, doc_id: doc._id },
'sending doc to persistor'
)
logger.debug({ projectId, docId: doc._id }, 'sending doc to persistor')
const key = `${projectId}/${doc._id}`
if (doc.lines == null) {
@@ -66,7 +63,7 @@ async function archiveDoc(projectId, docId) {
rangesSize > Settings.max_doc_length
) {
logger.warn(
{ project_id: projectId, doc_id: doc._id, linesSize, rangesSize },
{ projectId, docId: doc._id, linesSize, rangesSize },
'large doc found when archiving project'
)
}