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
JuWon Seo
2020-09-01 15:35:31 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2020-09-01 15:35:31 +0900
Commit
b4e32f66539a77276c47a93a13788c982b5edd8b
b4e32f66
2 parents
eed1454d
52080038
Merge pull request #26 from FacerAin/develop
Develop
Hide 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 @
b4e32f6
...
...
@@ -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 @
b4e32f6
...
...
@@ -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 @
b4e32f6
...
...
@@ -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 @
b4e32f6
...
...
@@ -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 @
b4e32f6
...
...
@@ -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 @
b4e32f6
...
...
@@ -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