เพิ่มแก้ไขโครงสร้าง

This commit is contained in:
kittapath 2024-09-06 09:41:47 +07:00
parent bee2b69f61
commit 98ebf587a3
16 changed files with 565 additions and 410 deletions

View file

@ -28,7 +28,6 @@ import { Position } from "../entities/Position";
import CallAPI from "../interfaces/call-api";
import { ProfileSalary } from "../entities/ProfileSalary";
import { Profile } from "../entities/Profile";
import { request } from "axios";
import { RequestWithUser } from "../middlewares/user";
import permission from "../interfaces/permission";
@ -3444,7 +3443,7 @@ export class OrganizationController extends Controller {
where: { orgRevisionIsCurrent: true, orgRevisionIsDraft: false },
});
if (!orgRevisionActive) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
}
const data = await this.orgRootRepository.find({
@ -3486,7 +3485,7 @@ export class OrganizationController extends Controller {
where: { orgRevisionIsCurrent: true, orgRevisionIsDraft: false },
});
if (!orgRevisionActive) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
}
const data = await this.orgRootRepository.find({
@ -3507,7 +3506,7 @@ export class OrganizationController extends Controller {
where: { orgRevisionIsCurrent: true, orgRevisionIsDraft: false },
});
if (!orgRevisionActive) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบโครงสร้างที่เผยแพรอยู่ตอนนี้");
}
return new HttpSuccess(orgRevisionActive.id);
}