แก้ caption ไอดี
This commit is contained in:
parent
c1599e9d41
commit
da6f901b81
10 changed files with 27 additions and 117 deletions
|
|
@ -75,7 +75,7 @@ export class EducationLevelController extends Controller {
|
|||
) {
|
||||
const educationLevel = await this.educationLevelRepository.findOne({ where: { id: id } });
|
||||
if (!educationLevel) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับการศึกษานี้");
|
||||
}
|
||||
|
||||
const checkName = await this.educationLevelRepository.findOne({
|
||||
|
|
@ -106,7 +106,7 @@ export class EducationLevelController extends Controller {
|
|||
where: { id },
|
||||
});
|
||||
if (!delEducationLevel) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งตามไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับการศึกษานี้");
|
||||
}
|
||||
await this.educationLevelRepository.delete({ id: id });
|
||||
return new HttpSuccess();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue