แก้ caption ไอดี
This commit is contained in:
parent
da6f901b81
commit
02aaa63d09
6 changed files with 16 additions and 16 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue