feat: add support plan but not tested
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user