fix: callback transaction
This commit is contained in:
@@ -220,7 +220,12 @@ export class UsersService {
|
||||
|
||||
async findExist(id: string) {
|
||||
try {
|
||||
return await this.usersRepository.findOneOrFail(id);
|
||||
return await this.usersRepository.findOneOrFail({
|
||||
where: {
|
||||
id: id,
|
||||
},
|
||||
relations: ['superior'],
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof EntityNotFoundError) {
|
||||
throw new HttpException(
|
||||
|
||||
Reference in New Issue
Block a user