Skip to content

Commit

Permalink
Merge pull request #296 from nus-mtp/#295_CommentSchema_wrong_index
Browse files Browse the repository at this point in the history
CommentSchema wrong index
  • Loading branch information
JeanKoh authored Apr 4, 2017
2 parents cb49c43 + b38b5ee commit eb2bce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/database/schemas/ourSchemas/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ const commentSchema = new mongoose.Schema({
],
});

commentSchema.index({ user_email: 1, exhibition: 1 }, { unique: true });
commentSchema.index({ user_email: 1, exhibition_key: 1 }, { unique: true });

module.exports = commentSchema;

0 comments on commit eb2bce6

Please sign in to comment.