mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Subscribe to comments
This commit is contained in:
+4
-1
@@ -104,7 +104,10 @@ const CommentSchema = new Schema({
|
||||
timestamps: {
|
||||
createdAt: 'created_at',
|
||||
updatedAt: 'updated_at'
|
||||
}
|
||||
},
|
||||
toJSON: {
|
||||
virtuals: true,
|
||||
},
|
||||
});
|
||||
|
||||
CommentSchema.virtual('edited').get(function() {
|
||||
|
||||
Reference in New Issue
Block a user