chore: complete the the invoice module - not tested
This commit is contained in:
@@ -46,6 +46,13 @@ export class UsersService {
|
||||
if (!user) throw new BadRequestException(UserMessage.USER_NOT_FOUND);
|
||||
return { user };
|
||||
}
|
||||
/************************************************************ */
|
||||
|
||||
async findOneByIdWithQueryRunner(id: string, queryRunner: QueryRunner) {
|
||||
const user = await queryRunner.manager.findOneBy(User, { id });
|
||||
if (!user) throw new BadRequestException(UserMessage.USER_NOT_FOUND);
|
||||
return user;
|
||||
}
|
||||
|
||||
/************************************************************ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user