Merge branch 'develop' of https://github.com/FacerAin/Jaksimsamil into develop
Showing
6 changed files
with
0 additions
and
6 deletions
... | @@ -43,7 +43,6 @@ ChallengeSchema.methods.getStatus=function(){ | ... | @@ -43,7 +43,6 @@ ChallengeSchema.methods.getStatus=function(){ |
43 | 43 | ||
44 | ChallengeSchema.methods.serialize=function(){ | 44 | ChallengeSchema.methods.serialize=function(){ |
45 | let challengeJSON = this.toJSON(); | 45 | let challengeJSON = this.toJSON(); |
46 | - delete challengeJSON._id; | ||
47 | return challengeJSON; | 46 | return challengeJSON; |
48 | } | 47 | } |
49 | 48 | ... | ... |
... | @@ -24,7 +24,6 @@ GroupSchema.methods.getMembers=function(){ | ... | @@ -24,7 +24,6 @@ GroupSchema.methods.getMembers=function(){ |
24 | 24 | ||
25 | GroupSchema.methods.serialize=function(){ | 25 | GroupSchema.methods.serialize=function(){ |
26 | let groupJSON=this.toJSON(); | 26 | let groupJSON=this.toJSON(); |
27 | - delete groupJSON._id; | ||
28 | return groupJSON; | 27 | return groupJSON; |
29 | } | 28 | } |
30 | 29 | ... | ... |
... | @@ -31,7 +31,6 @@ ParticipationSchema.methods.addProblem=function(problem){ | ... | @@ -31,7 +31,6 @@ ParticipationSchema.methods.addProblem=function(problem){ |
31 | 31 | ||
32 | ParticipationSchema.methods.serialize=function(){ | 32 | ParticipationSchema.methods.serialize=function(){ |
33 | let participationJSON=this.toJSON(); | 33 | let participationJSON=this.toJSON(); |
34 | - delete participationJSON._id; | ||
35 | return participationJSON; | 34 | return participationJSON; |
36 | } | 35 | } |
37 | 36 | ... | ... |
... | @@ -59,7 +59,6 @@ ProblemSchema.methods.getCategory=function(){ | ... | @@ -59,7 +59,6 @@ ProblemSchema.methods.getCategory=function(){ |
59 | 59 | ||
60 | ProblemSchema.methods.serialize=function(){ | 60 | ProblemSchema.methods.serialize=function(){ |
61 | let problemJSON=this.toJSON(); | 61 | let problemJSON=this.toJSON(); |
62 | - delete problemJSON._id; | ||
63 | return problemJSON; | 62 | return problemJSON; |
64 | } | 63 | } |
65 | 64 | ... | ... |
... | @@ -29,7 +29,6 @@ SessionSchema.methods.getStatus=function(){ | ... | @@ -29,7 +29,6 @@ SessionSchema.methods.getStatus=function(){ |
29 | 29 | ||
30 | SessionSchema.methods.serialize=function(){ | 30 | SessionSchema.methods.serialize=function(){ |
31 | let sessionJSON=this.toJSON(); | 31 | let sessionJSON=this.toJSON(); |
32 | - delete sessionJSON._id; | ||
33 | return sessionJSON; | 32 | return sessionJSON; |
34 | } | 33 | } |
35 | 34 | ... | ... |
... | @@ -38,7 +38,6 @@ UserSchema.methods.checkPassword = async function (password) { | ... | @@ -38,7 +38,6 @@ UserSchema.methods.checkPassword = async function (password) { |
38 | UserSchema.methods.serialize = function () { | 38 | UserSchema.methods.serialize = function () { |
39 | const data = this.toJSON(); | 39 | const data = this.toJSON(); |
40 | delete data.hashedPassword; | 40 | delete data.hashedPassword; |
41 | - delete data._id; | ||
42 | return data; | 41 | return data; |
43 | }; | 42 | }; |
44 | 43 | ... | ... |
-
Please register or login to post a comment