Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -27,6 +27,7 @@ ParticipationSchema.statics.findByGroupId=function(group){ | ... | @@ -27,6 +27,7 @@ ParticipationSchema.statics.findByGroupId=function(group){ |
27 | 27 | ||
28 | ParticipationSchema.methods.addProblem=function(problem){ | 28 | ParticipationSchema.methods.addProblem=function(problem){ |
29 | this.problems.push({problemNum:problem.problemNum,isSolved:problem.isSolved}); | 29 | this.problems.push({problemNum:problem.problemNum,isSolved:problem.isSolved}); |
30 | + return this.save(); | ||
30 | } | 31 | } |
31 | 32 | ||
32 | ParticipationSchema.methods.serialize=function(){ | 33 | ParticipationSchema.methods.serialize=function(){ | ... | ... |
-
Please register or login to post a comment