|
@@ -126,7 +126,7 @@ class DashboardService {
|
|
|
const offset = (+pageNum - 1) * pageSize + '';
|
|
|
const limit = pageSize;
|
|
|
const statement = `SELECT id,nick_name nickName,user_name userName,avatar,created_at createdAt, updated_at updatedAt FROM users where ${
|
|
|
- userId ? 'user_id = ' + userId : '1=1'
|
|
|
+ userId ? 'id = ' + userId : '1=1'
|
|
|
} LIMIT ${offset},${limit};`;
|
|
|
const [result] = await connection.execute(statement, []);
|
|
|
return result;
|