feat: implement invoice processing and discount management

This commit is contained in:
mahyargdz
2025-05-07 14:45:44 +03:30
parent 9cd28e8130
commit 9faa75b049
10 changed files with 165 additions and 85 deletions
@@ -175,7 +175,7 @@ export class SupportPlansService {
async getUserSupportPlanOfUser(userId: string) {
const userSupportPlan = await this.userSupportPlanRepo.findOne({
where: { user: { id: userId }, status: UserSupportPlanStatus.ACTIVE },
relations: { supportPlan: true },
relations: { supportPlan: { features: true } },
});
return { userSupportPlan };