feat: implement support plan upgrade functionality with invoice creation

This commit is contained in:
mahyargdz
2025-05-06 12:31:55 +03:30
parent 1ea3195f4f
commit 8b4267807b
11 changed files with 153 additions and 19 deletions
@@ -30,7 +30,7 @@ export class SupportPlanRepository extends Repository<SupportPlan> {
}
async getSupportPlansListUser() {
return this.find({ where: { isActive: true, deletedAt: IsNull() }, relations: { features: true } });
return this.find({ where: { isActive: true, deletedAt: IsNull() }, order: { price: "ASC" }, relations: { features: true } });
}
//***************************************** */
async getSupportPlanById(id: string) {