Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -44,7 +44,7 @@ ChallengeSchema.methods.getStatus=function(){ | ... | @@ -44,7 +44,7 @@ ChallengeSchema.methods.getStatus=function(){ |
44 | 44 | ||
45 | ChallengeSchema.methods.serialize=function(){ | 45 | ChallengeSchema.methods.serialize=function(){ |
46 | let challengeJSON = this.toJSON(); | 46 | let challengeJSON = this.toJSON(); |
47 | - delete challenge._id; | 47 | + delete challengeJSON._id; |
48 | return challengeJSON; | 48 | return challengeJSON; |
49 | } | 49 | } |
50 | 50 | ... | ... |
-
Please register or login to post a comment