Skip to content

Commit

Permalink
[models:notification] Removed topic from type enum #1071
Browse files Browse the repository at this point in the history
  • Loading branch information
jfresco committed Dec 9, 2015
1 parent ab65448 commit e16cdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var ObjectId = Schema.ObjectId;

var NotificationSchema = new Schema({
user: { type: ObjectId, ref: 'User' },
type: { type: String, enum: ['topic', 'reply', 'upvote', 'downvote'], required: true },
type: { type: String, enum: ['reply', 'upvote', 'downvote'], required: true },
comment: { type: ObjectId, ref: 'Comment' },
relatedUser: { type: ObjectId, ref: 'User' },
topic: { type: ObjectId, ref: 'Topic' },
Expand Down

0 comments on commit e16cdb7

Please sign in to comment.