แก้ caption ไอดี
This commit is contained in:
parent
da6f901b81
commit
02aaa63d09
6 changed files with 16 additions and 16 deletions
|
|
@ -79,7 +79,7 @@ export class RankController extends Controller {
|
|||
) {
|
||||
const rank = await this.rankRepository.findOne({ where: { id: id } });
|
||||
if (!rank) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลยศนี้");
|
||||
}
|
||||
|
||||
const checkName = await this.rankRepository.findOne({
|
||||
|
|
@ -114,7 +114,7 @@ export class RankController extends Controller {
|
|||
where: { id },
|
||||
});
|
||||
if (!delRank) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งตามไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลยศนี้");
|
||||
}
|
||||
try {
|
||||
await this.rankRepository.delete({ id: id });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue