mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix linting
This commit is contained in:
parent
d3a7ffd1a9
commit
8335f31d6c
3 changed files with 18 additions and 14 deletions
1
services/track-changes/.eslintignore
Normal file
1
services/track-changes/.eslintignore
Normal file
|
@ -0,0 +1 @@
|
|||
app/lib/diff_match_patch.js
|
|
@ -42,7 +42,7 @@ const Path = require('path')
|
|||
|
||||
Metrics.memory.monitor(logger)
|
||||
|
||||
const child_process = require('child_process')
|
||||
const childProcess = require('child_process')
|
||||
|
||||
const HttpController = require('./app/js/HttpController')
|
||||
const express = require('express')
|
||||
|
@ -84,11 +84,14 @@ app.post('/pack', function (req, res, next) {
|
|||
return res.send('pack already running')
|
||||
} else {
|
||||
logger.log('running pack')
|
||||
packWorker = child_process.fork(__dirname + '/app/js/PackWorker.js', [
|
||||
req.query.limit || 1000,
|
||||
req.query.delay || 1000,
|
||||
req.query.timeout || 30 * 60 * 1000
|
||||
])
|
||||
packWorker = childProcess.fork(
|
||||
Path.join(__dirname, '/app/js/PackWorker.js'),
|
||||
[
|
||||
req.query.limit || 1000,
|
||||
req.query.delay || 1000,
|
||||
req.query.timeout || 30 * 60 * 1000
|
||||
]
|
||||
)
|
||||
packWorker.on('exit', function (code, signal) {
|
||||
logger.log({ code, signal }, 'history auto pack exited')
|
||||
return (packWorker = null)
|
||||
|
|
|
@ -40,11 +40,11 @@ module.exports = {
|
|||
port: process.env.REDIS_PORT || 6379,
|
||||
password: process.env.REDIS_PASSWORD || '',
|
||||
key_schema: {
|
||||
historyLock({ doc_id }) {
|
||||
return `HistoryLock:{${doc_id}}`
|
||||
historyLock({ doc_id: docId }) {
|
||||
return `HistoryLock:{${docId}}`
|
||||
},
|
||||
historyIndexLock({ project_id }) {
|
||||
return `HistoryIndexLock:{${project_id}}`
|
||||
historyIndexLock({ project_id: projectId }) {
|
||||
return `HistoryIndexLock:{${projectId}}`
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -53,11 +53,11 @@ module.exports = {
|
|||
port: process.env.REDIS_PORT || 6379,
|
||||
password: process.env.REDIS_PASSWORD || '',
|
||||
key_schema: {
|
||||
uncompressedHistoryOps({ doc_id }) {
|
||||
return `UncompressedHistoryOps:{${doc_id}}`
|
||||
uncompressedHistoryOps({ doc_id: docId }) {
|
||||
return `UncompressedHistoryOps:{${docId}}`
|
||||
},
|
||||
docsWithHistoryOps({ project_id }) {
|
||||
return `DocsWithHistoryOps:{${project_id}}`
|
||||
docsWithHistoryOps({ project_id: projectId }) {
|
||||
return `DocsWithHistoryOps:{${projectId}}`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue