mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fixed linting
This commit is contained in:
parent
6f931ee52b
commit
d27275a3ab
3 changed files with 9 additions and 12 deletions
|
@ -60,7 +60,7 @@ module.exports = MessageFormatter = {
|
|||
}
|
||||
}
|
||||
|
||||
for (let message of Array.from(messages)) {
|
||||
for (const message of Array.from(messages)) {
|
||||
room = rooms_by_id[message.room_id.toString()]
|
||||
if (room != null) {
|
||||
thread = getThread(room)
|
||||
|
@ -70,7 +70,7 @@ module.exports = MessageFormatter = {
|
|||
}
|
||||
}
|
||||
|
||||
for (let thread_id in threads) {
|
||||
for (const thread_id in threads) {
|
||||
thread = threads[thread_id]
|
||||
thread.messages.sort((a, b) => a.timestamp - b.timestamp)
|
||||
}
|
||||
|
|
|
@ -23,12 +23,10 @@ app.use(metrics.http.monitor(logger))
|
|||
metrics.injectMetricsRoute(app)
|
||||
|
||||
if (app.get('env') === 'development') {
|
||||
console.log('Development Enviroment')
|
||||
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }))
|
||||
}
|
||||
|
||||
if (app.get('env') === 'production') {
|
||||
console.log('Production Enviroment')
|
||||
app.use(express.logger())
|
||||
app.use(express.errorHandler())
|
||||
}
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
module.exports = {
|
||||
internal: {
|
||||
chat: {
|
||||
host: process.env['LISTEN_ADDRESS'] || 'localhost',
|
||||
host: process.env.LISTEN_ADDRESS || 'localhost',
|
||||
port: 3010
|
||||
}
|
||||
},
|
||||
|
||||
apis: {
|
||||
web: {
|
||||
url: `http://${process.env['WEB_HOST'] || 'localhost'}:${process.env[
|
||||
'WEB_PORT'
|
||||
] || 3000}`,
|
||||
user: process.env['WEB_API_USER'] || 'sharelatex',
|
||||
pass: process.env['WEB_API_PASSWORD'] || 'password'
|
||||
url: `http://${process.env.WEB_HOST || 'localhost'}:${process.env
|
||||
.WEB_PORT || 3000}`,
|
||||
user: process.env.WEB_API_USER || 'sharelatex',
|
||||
pass: process.env.WEB_API_PASSWORD || 'password'
|
||||
}
|
||||
},
|
||||
|
||||
mongo: {
|
||||
url:
|
||||
process.env['MONGO_CONNECTION_STRING'] ||
|
||||
`mongodb://${process.env['MONGO_HOST'] || 'localhost'}/sharelatex`
|
||||
process.env.MONGO_CONNECTION_STRING ||
|
||||
`mongodb://${process.env.MONGO_HOST || 'localhost'}/sharelatex`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue