แก้ caption ไอดี

This commit is contained in:
Bright 2024-02-28 14:07:49 +07:00
parent da6f901b81
commit 02aaa63d09
6 changed files with 16 additions and 16 deletions

View file

@ -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 });