feat: dont inactive the old suport plan and after pay the invoice make it inactive

This commit is contained in:
mahyargdz
2025-05-07 11:44:04 +03:30
parent a0d916ae69
commit 9cd28e8130
5 changed files with 13 additions and 6 deletions
@@ -249,8 +249,8 @@ export class SupportPlansService {
upgradePrice.toNumber(),
);
// cancel old support plan
currentUserSupportPlan.status = UserSupportPlanStatus.CANCELLED;
// inactivate old support plan
// currentUserSupportPlan.status = UserSupportPlanStatus.INACTIVE;
await queryRunner.manager.save(this.userSupportPlanRepo.target, currentUserSupportPlan);
if (newSupportPlan.isFree) {