diff --git a/server/src/service/commentService.js b/server/src/service/commentService.js index e4a919b80..1bc803eec 100644 --- a/server/src/service/commentService.js +++ b/server/src/service/commentService.js @@ -11,12 +11,13 @@ const _getLikeList = async (commentId) => { //NOT FOR EXPORT COMMENTID: commentId } }); - _likeList = []; + let _likeList = []; for (let i in likeList) { _likeList.push(likeList[i].dataValues); } return _likeList; } catch (err) { + console.log(err); return []; } }