fix: add notiftype

This commit is contained in:
mahyargdz
2025-03-03 11:39:59 +03:30
parent 0abac00bde
commit c302ab1c77
9 changed files with 106 additions and 11 deletions
+8 -10
View File
@@ -491,22 +491,20 @@ export class UsersService {
async findOneCustomer(userId: string) {
const customer = await this.userRepository.findOne({
where: {
id: userId,
roles: {
name: RoleEnum.USER,
},
},
relations: {
legalUser: true,
realUser: true,
},
where: { id: userId, roles: { name: RoleEnum.USER } },
relations: { legalUser: true, realUser: true },
});
return { customer };
}
/************************************************************ */
async getUsersByGroup(groupId: string) {
const users = await this.userRepository.find({ where: { groups: { id: groupId } }, relations: { tickets: true } });
return { users };
}
/************************************************************ */
async getAdmins(queryDto: SearchAdminQueryDto) {
const { limit, skip } = PaginationUtils(queryDto);
const queryBuilder = this.userRepository.createQueryBuilder("user");