File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const helper = require('../helper');
3
3
const config = require ( '../config' ) ;
4
4
5
5
const sql = `SELECT nickname, COUNT(DISTINCT videoId) AS video_count FROM user_video
6
- INNER JOIN ircbot. user ON ircbot. user_video.userId = ircbot. user.userId GROUP BY user_video.userId
6
+ INNER JOIN user ON user_video.userId = user.userId GROUP BY user_video.userId
7
7
ORDER BY video_count DESC LIMIT ?,?` ;
8
8
9
9
async function get ( page = 1 ) {
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ async function getMultiple(page = 1){
10
10
[ offset , config . listPerPage ]
11
11
) ;
12
12
const total = await db . query (
13
- `SELECT COUNT(*) AS numRows FROM user` ,
14
- [ userid ]
13
+ `SELECT COUNT(*) AS numRows FROM user`
15
14
) ;
16
15
const data = helper . emptyOrRows ( rows ) ;
17
16
const perPage = config . listPerPage ;
You can’t perform that action at this time.
0 commit comments