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
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 errorHandler = require('errorhandler')
|
||||
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)
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ module.exports = Notifications = {
|
|||
}
|
||||
return db.notifications.update(
|
||||
{ user_id: doc.user_id, key: notification.key },
|
||||
{ $set: { ...doc } },
|
||||
{ $set: doc },
|
||||
{ upsert: true },
|
||||
callback
|
||||
)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
let Settings
|
||||
module.exports = Settings = {
|
||||
module.exports = {
|
||||
internal: {
|
||||
notifications: {
|
||||
port: 3042,
|
||||
|
|
Loading…
Reference in a new issue