Tim Alby пре 6 година
родитељ
комит
311d7cefa1

+ 0 - 3
services/notifications/app.js

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

+ 1 - 1
services/notifications/app/js/Notifications.js

@@ -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 - 2
services/notifications/config/settings.defaults.js

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