summaryrefslogtreecommitdiff
path: root/src/services/events/models.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-04 01:21:59 +0300
committereug-vs <eug-vs@keemail.me>2020-12-04 01:21:59 +0300
commit8ef929e503b00d93c5fee4ab996aeaa9abf283d3 (patch)
tree0aa142dce4a5d8dc4e90b090007cfbba3b4fc0fb /src/services/events/models.js
parenta79e87296271a2891594a1ab11d746fdd875c928 (diff)
downloadbsu-fantom-8ef929e503b00d93c5fee4ab996aeaa9abf283d3.tar.gz
chore: upgrade mongo-cronjob
Diffstat (limited to 'src/services/events/models.js')
-rw-r--r--src/services/events/models.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/services/events/models.js b/src/services/events/models.js
index 99dada1..72b10d7 100644
--- a/src/services/events/models.js
+++ b/src/services/events/models.js
@@ -1,16 +1,7 @@
const mongoose = require('mongoose');
const { Client } = require('mongo-cronjob');
-const { getConnection } = require('../../connectDb.js');
-
-const contextSchema = new mongoose.Schema({
- participants: [String],
- attendanceId: String,
- conferenceId: String
-});
-
-const connection = mongoose.connection;
-const client = new Client(connection, contextSchema);
+const client = new Client(mongoose.connection);
module.exports = client;