fix ORG_061
This commit is contained in:
parent
64d00339bb
commit
8f6517a6ab
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ export class EducationLevelController extends Controller {
|
||||||
async detailEducationLevel(@Path() id: string) {
|
async detailEducationLevel(@Path() id: string) {
|
||||||
const educationLevel = await this.educationLevelRepository.findOne({
|
const educationLevel = await this.educationLevelRepository.findOne({
|
||||||
where: { id },
|
where: { id },
|
||||||
select: ["id", "name", "rank"],
|
select: ["id", "name", "rank", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||||
});
|
});
|
||||||
if (!educationLevel) {
|
if (!educationLevel) {
|
||||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
|
|
@ -156,7 +156,7 @@ export class EducationLevelController extends Controller {
|
||||||
@Get()
|
@Get()
|
||||||
async listEducationLevel() {
|
async listEducationLevel() {
|
||||||
const educationLevel = await this.educationLevelRepository.find({
|
const educationLevel = await this.educationLevelRepository.find({
|
||||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
select: ["id", "name","rank", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||||
order: { createdAt: "ASC" },
|
order: { createdAt: "ASC" },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -492,7 +492,7 @@ export class PositionController extends Controller {
|
||||||
posMaster.orgRevisionId = orgRoot.orgRevisionId;
|
posMaster.orgRevisionId = orgRoot.orgRevisionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
posMaster.createdUserId = request.user.sub;
|
posMaster.createdUserId = request.user.sub; //สงสัยว่าทำให้ bug แก้ไขไม่ได้
|
||||||
posMaster.createdFullName = request.user.name;
|
posMaster.createdFullName = request.user.name;
|
||||||
posMaster.lastUpdateUserId = request.user.sub;
|
posMaster.lastUpdateUserId = request.user.sub;
|
||||||
posMaster.lastUpdateFullName = request.user.name;
|
posMaster.lastUpdateFullName = request.user.name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue