Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Fix: 댓글 api 결과값
Browse files Browse the repository at this point in the history
  • Loading branch information
leehj050211 committed Dec 19, 2021
1 parent 7e91c44 commit 6fe58e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/controllers/api/meister.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const getPoint = async (req, res) =>{
}

const getScore = async (req, res) =>{
console.log([req.params.grade, req.params.classNo, req.params.studentNo])
dbResult = await model.getMeisterNo(req.params.grade, req.params.classNo, req.params.studentNo)
if(dbResult){
options = {
Expand Down
2 changes: 2 additions & 0 deletions src/models/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const commentTree = (commentList, depth, memberCode, memberLevel, isAnonymous) =
memberLevel:e.member_level,
comment:e.comment,
commentDate:e.comment_date,
depth:depth,
permission:e.permission,
child:commentTree(childList, depth+1, memberCode, memberLevel, isAnonymous)// 대댓글 재귀 호출
})
Expand All @@ -84,6 +85,7 @@ const commentTree = (commentList, depth, memberCode, memberLevel, isAnonymous) =
memberLevel:e.member_level,
comment:e.comment,
commentDate:e.comment_date,
depth:depth,
permission:e.permission
})
}
Expand Down

0 comments on commit 6fe58e6

Please sign in to comment.