mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
Fix tests related to tags on comments.
This commit is contained in:
+7
-3
@@ -50,13 +50,17 @@ const TagSchema = new Schema({
|
||||
|
||||
privacy_type: {
|
||||
type: String,
|
||||
enum: PRIVACY_TYPES
|
||||
enum: PRIVACY_TYPES,
|
||||
default: 'SELF'
|
||||
},
|
||||
|
||||
// Additional metadata stored on the field.
|
||||
metadata: Schema.Types.Mixed
|
||||
}, {
|
||||
_id: false
|
||||
}, {
|
||||
timestamps: {
|
||||
createdAt: 'created_at',
|
||||
updatedAt: 'updated_at'
|
||||
}
|
||||
});
|
||||
|
||||
const Tag = mongoose.model('Tag', TagSchema);
|
||||
|
||||
Reference in New Issue
Block a user