updated throw
This commit is contained in:
parent
aaf28beb3c
commit
624b1a0627
1 changed files with 3 additions and 3 deletions
|
|
@ -28,9 +28,9 @@ export class AuthSysController extends Controller {
|
||||||
@Get("list")
|
@Get("list")
|
||||||
public async listAuthSys() {
|
public async listAuthSys() {
|
||||||
const getList = await this.authSysRepo.find();
|
const getList = await this.authSysRepo.find();
|
||||||
// if (!getList || getList.length === 0) {
|
if (!getList || getList.length === 0) {
|
||||||
// throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
// }
|
}
|
||||||
return new HttpSuccess(getList);
|
return new HttpSuccess(getList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue