update count having
This commit is contained in:
@ -96,6 +96,7 @@ export class UserActivityController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const res_count = userRepository.createQueryBuilder()
|
const res_count = userRepository.createQueryBuilder()
|
||||||
|
.addSelect('(SELECT u.username FROM users u WHERE u.id = id_user)', 'username')
|
||||||
.having(whereAttr, whereVal);
|
.having(whereAttr, whereVal);
|
||||||
const res_list = userRepository.createQueryBuilder()
|
const res_list = userRepository.createQueryBuilder()
|
||||||
.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')
|
||||||
|
|||||||
Reference in New Issue
Block a user