fix linting

This commit is contained in:
Tim Alby 2020-06-04 10:17:24 +02:00
parent 61dc3435c4
commit 311d7cefa1
3 changed files with 2 additions and 6 deletions

View file

@ -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)

View file

@ -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
)

View file

@ -1,5 +1,4 @@
let Settings
module.exports = Settings = {
module.exports = {
internal: {
notifications: {
port: 3042,