แก้ 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 BloodGroupController extends Controller {
|
|||
) {
|
||||
const bloodGroup = await this.bloodGroupRepository.findOne({ where: { id: id } });
|
||||
if (!bloodGroup) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลกรุ๊ปเลือดนี้");
|
||||
}
|
||||
|
||||
const checkName = await this.bloodGroupRepository.findOne({
|
||||
|
|
@ -106,7 +106,7 @@ export class BloodGroupController extends Controller {
|
|||
where: { id },
|
||||
});
|
||||
if (!delBloodGroup) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งตามไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลกรุ๊ปเลือดนี้");
|
||||
}
|
||||
|
||||
await this.bloodGroupRepository.delete({ id: id });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue