update having
This commit is contained in:
@ -96,10 +96,10 @@ export class UserActivityController {
|
||||
}
|
||||
|
||||
const res_count = userRepository.createQueryBuilder()
|
||||
.where(whereAttr, whereVal);
|
||||
.having(whereAttr, whereVal);
|
||||
const res_list = userRepository.createQueryBuilder()
|
||||
.addSelect('(SELECT u.username FROM users u WHERE u.id = id_user)', 'username')
|
||||
.where(whereAttr, whereVal)
|
||||
.having(whereAttr, whereVal)
|
||||
.orderBy(param.order_field, param.order_direction)
|
||||
.offset(offset)
|
||||
.limit(param.limit);
|
||||
|
||||
Reference in New Issue
Block a user