Toggle navigation
Toggle navigation
This project
Loading...
Sign in
송용우
/
oss-Jaksimsamil
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
JJuOn
2020-09-01 15:27:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2c7c9d2165fa75ac2a166329153f1b60b3341a98
2c7c9d21
1 parent
d7bbb4ba
Restore _ids
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
6 deletions
jaksimsamil-server/src/models/challenge.js
jaksimsamil-server/src/models/group.js
jaksimsamil-server/src/models/participation.js
jaksimsamil-server/src/models/problem.js
jaksimsamil-server/src/models/session.js
jaksimsamil-server/src/models/user.js
jaksimsamil-server/src/models/challenge.js
View file @
2c7c9d2
...
...
@@ -43,7 +43,6 @@ ChallengeSchema.methods.getStatus=function(){
ChallengeSchema
.
methods
.
serialize
=
function
(){
let
challengeJSON
=
this
.
toJSON
();
delete
challengeJSON
.
_id
;
return
challengeJSON
;
}
...
...
jaksimsamil-server/src/models/group.js
View file @
2c7c9d2
...
...
@@ -24,7 +24,6 @@ GroupSchema.methods.getMembers=function(){
GroupSchema
.
methods
.
serialize
=
function
(){
let
groupJSON
=
this
.
toJSON
();
delete
groupJSON
.
_id
;
return
groupJSON
;
}
...
...
jaksimsamil-server/src/models/participation.js
View file @
2c7c9d2
...
...
@@ -31,7 +31,6 @@ ParticipationSchema.methods.addProblem=function(problem){
ParticipationSchema
.
methods
.
serialize
=
function
(){
let
participationJSON
=
this
.
toJSON
();
delete
participationJSON
.
_id
;
return
participationJSON
;
}
...
...
jaksimsamil-server/src/models/problem.js
View file @
2c7c9d2
...
...
@@ -59,7 +59,6 @@ ProblemSchema.methods.getCategory=function(){
ProblemSchema
.
methods
.
serialize
=
function
(){
let
problemJSON
=
this
.
toJSON
();
delete
problemJSON
.
_id
;
return
problemJSON
;
}
...
...
jaksimsamil-server/src/models/session.js
View file @
2c7c9d2
...
...
@@ -29,7 +29,6 @@ SessionSchema.methods.getStatus=function(){
SessionSchema
.
methods
.
serialize
=
function
(){
let
sessionJSON
=
this
.
toJSON
();
delete
sessionJSON
.
_id
;
return
sessionJSON
;
}
...
...
jaksimsamil-server/src/models/user.js
View file @
2c7c9d2
...
...
@@ -38,7 +38,6 @@ UserSchema.methods.checkPassword = async function (password) {
UserSchema
.
methods
.
serialize
=
function
()
{
const
data
=
this
.
toJSON
();
delete
data
.
hashedPassword
;
delete
data
.
_id
;
return
data
;
};
...
...
Please
register
or
login
to post a comment