update where

This commit is contained in:
2024-12-05 16:42:54 +09:00
parent 945d807716
commit f3bc83d0ac

View File

@ -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)