checkpoint org_007-009
This commit is contained in:
parent
2d22aa9224
commit
55119a72f5
2 changed files with 107 additions and 118 deletions
|
|
@ -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, "ไม่พบข้อมูล");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue