feat: add user plan to the user ticket info for admin

This commit is contained in:
mahyargdz
2025-05-07 10:53:01 +03:30
parent 55ec7b713f
commit 87bf8913aa
4 changed files with 25 additions and 1 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: { features: true } },
relations: { supportPlan: true },
});
return { userSupportPlan };