Fix tests related to tags on comments.

This commit is contained in:
gaba
2017-04-20 12:24:08 -07:00
parent 1137fca3b4
commit bd72bfc6ec
10 changed files with 139 additions and 81 deletions
+7 -3
View File
@@ -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);