feat: add support plan but not tested

This commit is contained in:
mahyargdz
2025-05-05 14:44:53 +03:30
parent 06272b5afe
commit 61513d5059
21 changed files with 434 additions and 8 deletions
@@ -105,10 +105,10 @@ export class DanakServicesService {
async updateCategory(categoryId: string, updateDto: UpdateDanakServiceCategoryDto) {
const queryRunner = this.dataSource.createQueryRunner();
await queryRunner.connect();
await queryRunner.startTransaction();
try {
await queryRunner.connect();
await queryRunner.startTransaction();
const category = await queryRunner.manager.findOne(DanakServiceCategory, { where: { id: categoryId } });
if (!category) throw new BadRequestException(CategoryMessage.CATEGORY_NOT_EXIST);
@@ -386,6 +386,7 @@ export class DanakServicesService {
description: true,
createDate: true,
icon: true,
slug: true,
createdAt: true,
isActive: true,
isDanakSuggest: true,