JuWon Seo
Committed by GitHub

Merge pull request #27 from FacerAin/feature/database

Fix model/participation.js
...@@ -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(){
......