update activity

This commit is contained in:
2024-12-05 16:38:13 +09:00
parent c9aa1277aa
commit b3ac2714a1

View File

@ -99,6 +99,7 @@ export class UserActivityController {
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
.where(whereAttr, whereVal);
const res_list = userRepository.createQueryBuilder()
.select('UserActivity.*, u.username')
// .addSelect('(SELECT u.username FROM users u WHERE u.id = id_user)', 'username')
.leftJoinAndMapOne('u.username', User, 'u', 'u.id = id_user')
.where(whereAttr, whereVal)