add find user by roles

This commit is contained in:
2021-12-08 11:06:26 +07:00
parent a418e74db5
commit 10984f65a5
4 changed files with 34 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import { Roles } from 'src/configurable/entities/roles.entity';
import {
Entity,
Column,
PrimaryGeneratedColumn, BeforeInsert, ManyToOne,
PrimaryGeneratedColumn, ManyToOne,
} from 'typeorm';
import { BaseModel } from '../../config/basemodel.entity';
import { hashPassword } from '../../helper/hash_password';