fix delete api web service

This commit is contained in:
Warunee Tamkoo 2025-08-07 17:50:10 +07:00
parent e0de2ed251
commit 803845d568

View file

@ -596,8 +596,8 @@ export class ApiManageController extends Controller {
throw new HttpError(HttpStatusCode.FORBIDDEN, "คุณไม่มีสิทธิ์ในการเข้าถึงข้อมูลนี้");
}
await queryRunner.manager.getRepository(ApiName).delete({ id });
await queryRunner.manager.getRepository(ApiAttribute).delete({ apiNameId: id });
await queryRunner.manager.getRepository(ApiName).delete({ id });
await queryRunner.commitTransaction();
return new HttpSuccess();