แก้ caption ไอดี
This commit is contained in:
parent
da6f901b81
commit
02aaa63d09
6 changed files with 16 additions and 16 deletions
|
|
@ -69,7 +69,7 @@ export class ProfileController extends Controller {
|
|||
if (!checkPosLevel) {
|
||||
throw new HttpError(
|
||||
HttpStatusCode.NOT_FOUND,
|
||||
"ไม่พบข้อมูลใน PosLevel จากไอดีนี้ : " + requestBody.posLevelId,
|
||||
"ไม่พบข้อมูลระดับตำแหน่งนี้"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ export class ProfileController extends Controller {
|
|||
if (!checkPosType) {
|
||||
throw new HttpError(
|
||||
HttpStatusCode.NOT_FOUND,
|
||||
"ไม่พบข้อมูลใน PosType จากไอดีนี้ : " + requestBody.posTypeId,
|
||||
"ไม่พบข้อมูลประเภทตำแหน่งนี้"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -129,7 +129,7 @@ export class ProfileController extends Controller {
|
|||
) {
|
||||
const profile = await this.profileRepository.findOne({ where: { id: id } });
|
||||
if (!profile) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
|
||||
}
|
||||
|
||||
const _profile = await this.profileRepository.findOne({
|
||||
|
|
@ -149,7 +149,7 @@ export class ProfileController extends Controller {
|
|||
if (!checkPosLevel) {
|
||||
throw new HttpError(
|
||||
HttpStatusCode.NOT_FOUND,
|
||||
"ไม่พบข้อมูลใน PosLevel จากไอดีนี้ : " + requestBody.posLevelId,
|
||||
"ไม่พบข้อมูลระดับตำแหน่งนี้"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -164,7 +164,7 @@ export class ProfileController extends Controller {
|
|||
if (!checkPosType) {
|
||||
throw new HttpError(
|
||||
HttpStatusCode.NOT_FOUND,
|
||||
"ไม่พบข้อมูลใน PosType จากไอดีนี้ : " + requestBody.posTypeId,
|
||||
"ไม่พบข้อมูลประเภทตำแหน่งนี้"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -207,7 +207,7 @@ export class ProfileController extends Controller {
|
|||
where: { id },
|
||||
});
|
||||
if (!delProfile) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งตามไอดีนี้ : " + id);
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
|
||||
}
|
||||
try {
|
||||
await this.profileRepository.delete({ id: id });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue