update where
This commit is contained in:
@ -99,7 +99,6 @@ export class UserActivityController {
|
|||||||
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
|
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
|
||||||
.where(whereAttr, whereVal);
|
.where(whereAttr, whereVal);
|
||||||
const res_list = userRepository.createQueryBuilder()
|
const res_list = userRepository.createQueryBuilder()
|
||||||
.select(['UserActivity.*', 'u.username'])
|
|
||||||
// .addSelect('(SELECT u.username FROM users u WHERE u.id = id_user)', 'username')
|
// .addSelect('(SELECT u.username FROM users u WHERE u.id = id_user)', 'username')
|
||||||
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
|
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
|
||||||
.where(whereAttr, whereVal)
|
.where(whereAttr, whereVal)
|
||||||
|
|||||||
Reference in New Issue
Block a user