mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 02:13:35 -05:00
fix linting
This commit is contained in:
parent
61dc3435c4
commit
311d7cefa1
3 changed files with 2 additions and 6 deletions
|
@ -16,9 +16,6 @@ const methodOverride = require('method-override')
|
||||||
const bodyParser = require('body-parser')
|
const bodyParser = require('body-parser')
|
||||||
const errorHandler = require('errorhandler')
|
const errorHandler = require('errorhandler')
|
||||||
const controller = require('./app/js/NotificationsController')
|
const controller = require('./app/js/NotificationsController')
|
||||||
const mongojs = require('mongojs')
|
|
||||||
const db = mongojs(Settings.mongo.url, ['notifications'])
|
|
||||||
const Path = require('path')
|
|
||||||
|
|
||||||
metrics.memory.monitor(logger)
|
metrics.memory.monitor(logger)
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ module.exports = Notifications = {
|
||||||
}
|
}
|
||||||
return db.notifications.update(
|
return db.notifications.update(
|
||||||
{ user_id: doc.user_id, key: notification.key },
|
{ user_id: doc.user_id, key: notification.key },
|
||||||
{ $set: { ...doc } },
|
{ $set: doc },
|
||||||
{ upsert: true },
|
{ upsert: true },
|
||||||
callback
|
callback
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
let Settings
|
module.exports = {
|
||||||
module.exports = Settings = {
|
|
||||||
internal: {
|
internal: {
|
||||||
notifications: {
|
notifications: {
|
||||||
port: 3042,
|
port: 3042,
|
||||||
|
|
Loading…
Reference in a new issue