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 {
143
143
( result ) => result . id === id
144
144
) ;
145
145
let commentLike = [ ] ;
146
- if ( commentList . length > 1 ) {
146
+ if ( commentList . length > 0 ) {
147
147
commentLike = commentList . map ( ( item ) => ( {
148
148
id : item . likeId ,
149
149
visitorId : item . likeVisitorId ,
@@ -226,7 +226,7 @@ class CommentController extends controller {
226
226
const result = commentIds . map ( ( id ) => {
227
227
const commentList = selectResults . filter ( ( result ) => result . id === id ) ;
228
228
let commentLike = [ ] ;
229
- if ( commentList . length > 1 ) {
229
+ if ( commentList . length > 0 ) {
230
230
commentLike = commentList . map ( ( item ) => ( {
231
231
id : item . likeId ,
232
232
visitorId : item . likeVisitorId ,
You can’t perform that action at this time.
0 commit comments