File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
service/app/controller/blog Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class CommentController extends controller {
143143 ( result ) => result . id === id
144144 ) ;
145145 let commentLike = [ ] ;
146- if ( commentList . length > 1 ) {
146+ if ( commentList . length > 0 ) {
147147 commentLike = commentList . map ( ( item ) => ( {
148148 id : item . likeId ,
149149 visitorId : item . likeVisitorId ,
@@ -226,7 +226,7 @@ class CommentController extends controller {
226226 const result = commentIds . map ( ( id ) => {
227227 const commentList = selectResults . filter ( ( result ) => result . id === id ) ;
228228 let commentLike = [ ] ;
229- if ( commentList . length > 1 ) {
229+ if ( commentList . length > 0 ) {
230230 commentLike = commentList . map ( ( item ) => ( {
231231 id : item . likeId ,
232232 visitorId : item . likeVisitorId ,
You can’t perform that action at this time.
0 commit comments