ลบ caption "ไอดี"

This commit is contained in:
Bright 2024-02-28 13:35:08 +07:00
parent 382866d1cd
commit 74349d93c4
6 changed files with 20 additions and 20 deletions

View file

@ -52,7 +52,7 @@ export class SalaryRanksController extends Controller {
if (!checkSalary) {
throw new HttpError(
HttpStatusCode.NOT_FOUND,
"ไม่พบข้อมูลไอดีนี้ : " + requestBody.salaryId,
"ไม่พบข้อมูลผังเงินเดือนนี้"
);
}
const salaryRank = Object.assign(new SalaryRanks(), requestBody);
@ -84,7 +84,7 @@ export class SalaryRanksController extends Controller {
// try {
const salaryRank = await this.salaryRankRepository.findOne({ where: { id: id } });
if (!salaryRank) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับผังเงินเดือนนี้");
}
salaryRank.lastUpdateUserId = request.user.sub;
salaryRank.lastUpdateFullName = request.user.name;
@ -110,7 +110,7 @@ export class SalaryRanksController extends Controller {
where: { id },
});
if (!delSalaryRanks) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งตามไอดีนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลระดับผังเงินเดือนนี้");
}
await this.salaryRankRepository.delete({ id: id });
return new HttpSuccess();