chore: add new service to add subs to danak services in array

This commit is contained in:
mahyargdz
2025-02-13 13:27:21 +03:30
parent 95b9c38031
commit caa968ab4a
24 changed files with 317 additions and 98 deletions
@@ -25,6 +25,7 @@ export class DanakServicesRepository extends Repository<DanakService> {
const queryBuilder = this.createQueryBuilder("service")
.leftJoinAndSelect("service.category", "category")
.loadRelationCountAndMap("service.subscriptionCount", "service.subscriptionPlans")
.orderBy("service.createdAt", "DESC")
.skip(skip)
.take(limit);