แก้ 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

@ -55,7 +55,7 @@ export class ProfileSalaryController extends Controller {
where: {id : profileSalary.profileId}
})
if(!profile){
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี: "+ profileSalary.profileId);
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
}
profileSalary.createdUserId = request.user.sub;
@ -83,7 +83,7 @@ export class ProfileSalaryController extends Controller {
) {
const profileSalary = await this.profileSalaryRepository.findOne({ where: { id: id } });
if (!profileSalary) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี: " + id);
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
}
profileSalary.lastUpdateUserId = request.user.sub;
@ -107,7 +107,7 @@ export class ProfileSalaryController extends Controller {
where: { id },
});
if (!delprofileSalary) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดี: " + id);
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
}
try {
await this.profileSalaryRepository.delete({ id: id });