diff --git a/src/controllers/AuthSysController.ts b/src/controllers/AuthSysController.ts index 756bd368..f8c58159 100644 --- a/src/controllers/AuthSysController.ts +++ b/src/controllers/AuthSysController.ts @@ -28,9 +28,9 @@ export class AuthSysController extends Controller { @Get("list") public async listAuthSys() { const getList = await this.authSysRepo.find(); - // if (!getList || getList.length === 0) { - // throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); - // } + if (!getList || getList.length === 0) { + throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); + } return new HttpSuccess(getList); }