Add method to find role by type

This commit is contained in:
faris Aljohari
2024-12-23 01:37:37 -06:00
parent ff6a4829a0
commit 67742d018f

View File

@ -13,4 +13,12 @@ export class RoleService {
);
return roles;
}
async findRoleByType(roleType: RoleType) {
const role = await this.roleTypeRepository.findOne({
where: {
type: roleType,
},
});
return role;
}
}