Skip to content

Commit bc23785

Browse files
committed
cleanup
1 parent 54019d9 commit bc23785

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

handlers/quiz/models/quizStat.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ const schema = new Schema({
2020

2121
schema.index({slug: 1, score: 1}, {unique: true});
2222

23-
// TODO: test me
24-
// http://docs.mongodb.org/v2.6/MongoDB-aggregation-guide.pdf
2523
schema.statics.getBelowScorePercentage = function*(slug, score) {
2624

27-
var belowCount = yield QuizStat.aggregate(
28-
{
25+
var belowCount = yield QuizStat.aggregate({
2926
$match: {
3027
slug: slug,
3128
score: {
@@ -64,4 +61,4 @@ schema.statics.getBelowScorePercentage = function*(slug, score) {
6461
};
6562

6663

67-
var QuizStat = module.exports = mongoose.model('QuizStat', schema);
64+
var QuizStat = module.exports = mongoose.model('QuizStat', schema);

0 commit comments

Comments
 (0)