summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 22:13:39 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 22:13:39 -0800
commit821017e5337612a37179b586d5506666ab70ab77 (patch)
treeb2bfbfab6a04c1265cda82f641cc083be54267ae /models
parent51b42d13a370a9a79a618742c62de42c6cb666d8 (diff)
follow Undo now works
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/models/Event.js b/models/Event.js
index 1de6088..d68621a 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -15,6 +15,17 @@ const Attendees = new mongoose.Schema({
}
})
+const Followers = new mongoose.Schema({
+ followId: {
+ type: String,
+ trim: true
+ },
+ account: {
+ type: String,
+ trim: true
+ }
+}, {_id: false})
+
const ReplySchema = new mongoose.Schema({
id: {
type: String,
@@ -171,7 +182,8 @@ const EventSchema = new mongoose.Schema({
privateKey: {
type: String,
trim: true
- }
+ },
+ followers: [Followers],
});
module.exports = mongoose.model('Event', EventSchema);