feat: implement support plan subscription functionality
This commit is contained in:
@@ -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 } });
|
||||
|
||||
Reference in New Issue
Block a user