checkpoint org_007-009

This commit is contained in:
AdisakKanthawilang 2024-01-25 15:45:57 +07:00
parent 2d22aa9224
commit 55119a72f5
2 changed files with 107 additions and 118 deletions

View file

@ -162,7 +162,7 @@ export class OrgRootController extends Controller {
async delete(@Path() id: string) {
try {
const orgRoot = await this.orgRootRepository.findOne({ where: { id } });
const orgChild1 = await await this.orgRootRepository.findOne({ where: { id: id } });
const orgChild1 = await this.orgRootRepository.findOne({ where: { id: id } });
if (!orgRoot) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");