mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix lint errors in config/settings.defaults.js
This commit is contained in:
parent
96e7a668b7
commit
4184976099
1 changed files with 36 additions and 40 deletions
|
@ -1,4 +1,3 @@
|
||||||
const Path = require('path')
|
|
||||||
const http = require('http')
|
const http = require('http')
|
||||||
http.globalAgent.maxSockets = 300
|
http.globalAgent.maxSockets = 300
|
||||||
|
|
||||||
|
@ -61,11 +60,11 @@ module.exports = {
|
||||||
process.env.REDIS_MAX_RETRIES_PER_REQUEST || '20'
|
process.env.REDIS_MAX_RETRIES_PER_REQUEST || '20'
|
||||||
),
|
),
|
||||||
key_schema: {
|
key_schema: {
|
||||||
uncompressedHistoryOps({ doc_id }) {
|
uncompressedHistoryOps({ doc_id: docId }) {
|
||||||
return `UncompressedHistoryOps:{${doc_id}}`
|
return `UncompressedHistoryOps:{${docId}}`
|
||||||
},
|
},
|
||||||
docsWithHistoryOps({ project_id }) {
|
docsWithHistoryOps({ project_id: projectId }) {
|
||||||
return `DocsWithHistoryOps:{${project_id}}`
|
return `DocsWithHistoryOps:{${projectId}}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -134,56 +133,53 @@ module.exports = {
|
||||||
process.env.REDIS_MAX_RETRIES_PER_REQUEST || '20'
|
process.env.REDIS_MAX_RETRIES_PER_REQUEST || '20'
|
||||||
),
|
),
|
||||||
key_schema: {
|
key_schema: {
|
||||||
blockingKey({ doc_id }) {
|
blockingKey({ doc_id: docId }) {
|
||||||
return `Blocking:{${doc_id}}`
|
return `Blocking:{${docId}}`
|
||||||
},
|
},
|
||||||
docLines({ doc_id }) {
|
docLines({ doc_id: docId }) {
|
||||||
return `doclines:{${doc_id}}`
|
return `doclines:{${docId}}`
|
||||||
},
|
},
|
||||||
docOps({ doc_id }) {
|
docOps({ doc_id: docId }) {
|
||||||
return `DocOps:{${doc_id}}`
|
return `DocOps:{${docId}}`
|
||||||
},
|
},
|
||||||
docVersion({ doc_id }) {
|
docVersion({ doc_id: docId }) {
|
||||||
return `DocVersion:{${doc_id}}`
|
return `DocVersion:{${docId}}`
|
||||||
},
|
},
|
||||||
docHash({ doc_id }) {
|
docHash({ doc_id: docId }) {
|
||||||
return `DocHash:{${doc_id}}`
|
return `DocHash:{${docId}}`
|
||||||
},
|
},
|
||||||
projectKey({ doc_id }) {
|
projectKey({ doc_id: docId }) {
|
||||||
return `ProjectId:{${doc_id}}`
|
return `ProjectId:{${docId}}`
|
||||||
},
|
},
|
||||||
docsInProject({ project_id }) {
|
docsInProject({ project_id: projectId }) {
|
||||||
return `DocsIn:{${project_id}}`
|
return `DocsIn:{${projectId}}`
|
||||||
},
|
},
|
||||||
ranges({ doc_id }) {
|
ranges({ doc_id: docId }) {
|
||||||
return `Ranges:{${doc_id}}`
|
return `Ranges:{${docId}}`
|
||||||
},
|
},
|
||||||
unflushedTime({ doc_id }) {
|
unflushedTime({ doc_id: docId }) {
|
||||||
return `UnflushedTime:{${doc_id}}`
|
return `UnflushedTime:{${docId}}`
|
||||||
},
|
},
|
||||||
pathname({ doc_id }) {
|
pathname({ doc_id: docId }) {
|
||||||
return `Pathname:{${doc_id}}`
|
return `Pathname:{${docId}}`
|
||||||
},
|
},
|
||||||
projectHistoryId({ doc_id }) {
|
projectHistoryId({ doc_id: docId }) {
|
||||||
return `ProjectHistoryId:{${doc_id}}`
|
return `ProjectHistoryId:{${docId}}`
|
||||||
},
|
},
|
||||||
projectHistoryType({ doc_id }) {
|
projectHistoryType({ doc_id: docId }) {
|
||||||
return `ProjectHistoryType:{${doc_id}}`
|
return `ProjectHistoryType:{${docId}}`
|
||||||
},
|
},
|
||||||
projectState({ project_id }) {
|
projectState({ project_id: projectId }) {
|
||||||
return `ProjectState:{${project_id}}`
|
return `ProjectState:{${projectId}}`
|
||||||
},
|
},
|
||||||
pendingUpdates({ doc_id }) {
|
pendingUpdates({ doc_id: docId }) {
|
||||||
return `PendingUpdates:{${doc_id}}`
|
return `PendingUpdates:{${docId}}`
|
||||||
},
|
},
|
||||||
lastUpdatedBy({ doc_id }) {
|
lastUpdatedBy({ doc_id: docId }) {
|
||||||
return `lastUpdatedBy:{${doc_id}}`
|
return `lastUpdatedBy:{${docId}}`
|
||||||
},
|
},
|
||||||
lastUpdatedAt({ doc_id }) {
|
lastUpdatedAt({ doc_id: docId }) {
|
||||||
return `lastUpdatedAt:{${doc_id}}`
|
return `lastUpdatedAt:{${docId}}`
|
||||||
},
|
|
||||||
pendingUpdates({ doc_id }) {
|
|
||||||
return `PendingUpdates:{${doc_id}}`
|
|
||||||
},
|
},
|
||||||
flushAndDeleteQueue() {
|
flushAndDeleteQueue() {
|
||||||
return 'DocUpdaterFlushAndDeleteQueue'
|
return 'DocUpdaterFlushAndDeleteQueue'
|
||||||
|
|
Loading…
Reference in a new issue