chore: complete the the invoice module - not tested

This commit is contained in:
mahyargdz
2025-02-11 14:25:49 +03:30
parent bbdc5996b5
commit 49c62018f0
24 changed files with 674 additions and 74 deletions
@@ -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;
}
/************************************************************ */