Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d580140

Browse files
committed
bugfix
1 parent 757ec54 commit d580140

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎routes/articleList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ async function articleList(req, res, next) {
2020
}
2121
if (req.query.justOriginal == 'true') {
2222
let term = 'articleNature = 0'
23-
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
23+
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
2424
}
2525
if (req.query.dateTime) {
2626
let term = `DATE_FORMAT(articleCreateTime, '%Y-%m') = '${req.query.dateTime}'`
27-
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
27+
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
2828
}
2929
if (req.query.columnId) {
3030
let term = `articleColumn = ${req.query.columnId}`
31-
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
31+
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
3232
}
3333
if (req.query.author) {
3434
let articleAuthorId = req.query.author
@@ -37,7 +37,7 @@ async function articleList(req, res, next) {
3737
articleAuthorId = authorInfo[0].authorId
3838
}
3939
let term = `articleAuthorId = '${articleAuthorId}'`
40-
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
40+
whereSql = whereSql ? whereSql + `AND ${term}` : `WHERE ${term}`
4141
}
4242
totalSql = `SELECT * FROM vue_blog ${whereSql}`
4343
selectSql = `SELECT ${selectTableHead} FROM vue_blog ${whereSql} ${orderSql}`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /