summaryrefslogtreecommitdiff
path: root/src/services/events/event.schema.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-28 00:21:26 +0300
committereug-vs <eug-vs@keemail.me>2020-11-28 00:21:26 +0300
commit7c69da67cf43dd076d20df87b5a7ea52a47e69ac (patch)
tree04473c6b40cda94d5af714072ddb2ac0ffef59af /src/services/events/event.schema.js
parent9f7115217c34732753102e044a94711400b5affc (diff)
downloadbsu-fantom-7c69da67cf43dd076d20df87b5a7ea52a47e69ac.tar.gz
feat: correctly re-schedule old events
Diffstat (limited to 'src/services/events/event.schema.js')
-rw-r--r--src/services/events/event.schema.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/services/events/event.schema.js b/src/services/events/event.schema.js
index 0bbb978..2250700 100644
--- a/src/services/events/event.schema.js
+++ b/src/services/events/event.schema.js
@@ -1,4 +1,4 @@
-const { Schema, Types } = require('mongoose');
+const { Schema } = require('mongoose');
module.exports = new Schema({
name: {
@@ -10,16 +10,11 @@ module.exports = new Schema({
type: String,
required: true
},
- participants: {
- type: [String],
- default: []
- },
status: {
type: String,
default: 'notStarted'
},
- conferenceId: String,
- attendanceId: String,
+ context: {},
nextRunAt: Date,
lastRunAt: Date
}, { timestamps: true });