diff options
Diffstat (limited to 'src/services/logs')
-rw-r--r-- | src/services/logs/log.model.js | 7 | ||||
-rw-r--r-- | src/services/logs/log.schema.js | 7 | ||||
-rw-r--r-- | src/services/logs/log.service.js | 9 |
3 files changed, 0 insertions, 23 deletions
diff --git a/src/services/logs/log.model.js b/src/services/logs/log.model.js deleted file mode 100644 index 64b7da6..0000000 --- a/src/services/logs/log.model.js +++ /dev/null @@ -1,7 +0,0 @@ -const { model } = require('mongoose'); -const schema = require('./log.schema.js'); - -const Model = model('Log', schema); - - -module.exports = Model; diff --git a/src/services/logs/log.schema.js b/src/services/logs/log.schema.js deleted file mode 100644 index bb8d4a5..0000000 --- a/src/services/logs/log.schema.js +++ /dev/null @@ -1,7 +0,0 @@ -const { Schema, Types } = require('mongoose'); - -module.exports = new Schema({ - eventId: Types.ObjectId, - message: String -}, { timestamps: true }); - diff --git a/src/services/logs/log.service.js b/src/services/logs/log.service.js deleted file mode 100644 index 899ec86..0000000 --- a/src/services/logs/log.service.js +++ /dev/null @@ -1,9 +0,0 @@ -const service = require('feathers-mongoose'); -const Model = require('./log.model.js'); - -const LogService = service({ Model }); - -module.exports = app => { - app.use('/logs', LogService); -}; - |