feat: implement support plan subscription functionality

This commit is contained in:
mahyargdz
2025-05-05 17:01:13 +03:30
parent 47c9cd47e6
commit 1ea3195f4f
9 changed files with 177 additions and 5 deletions
@@ -28,6 +28,10 @@ export class SupportPlanRepository extends Repository<SupportPlan> {
query.skip(skip).take(limit).orderBy("supportPlan.createdAt", "DESC");
return query.getManyAndCount();
}
async getSupportPlansListUser() {
return this.find({ where: { isActive: true, deletedAt: IsNull() }, relations: { features: true } });
}
//***************************************** */
async getSupportPlanById(id: string) {
return this.findOne({ where: { id, deletedAt: IsNull() }, relations: { features: true } });