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 @@ -58,8 +58,8 @@ class IndexController extends controller {
58
58
article_type.name as type
59
59
FROM article LEFT JOIN article_type
60
60
ON article.type_id = article_type.id WHERE article.is_publish = 1 ORDER BY article.publish_time DESC LIMIT ?,?` ;
61
- const articleListPromise = await this . app . mysql . query ( sql , [ request . offset , request . limit ] ) ;
62
- const countPromise = await this . app . mysql . query ( 'SELECT (max(id)-min(id)+1) as count from novel where is_deleted = 0' ) ;
61
+ const articleListPromise = this . app . mysql . query ( sql , [ request . offset , request . limit ] ) ;
62
+ const countPromise = this . app . mysql . query ( 'SELECT (max(id)-min(id)+1) as count from novel where is_deleted = 0' ) ;
63
63
const [ articleListResult , countResult ] = await Promise . all ( [ articleListPromise , countPromise ] )
64
64
if ( articleListResult . length > 0 ) {
65
65
for ( const item of articleListResult ) {
You can’t perform that action at this time.
0 commit comments