tuning api (ตัด profileSalary เส้นที่ไม่ได้ใช้งาน)

This commit is contained in:
harid 2026-01-28 11:02:11 +07:00
parent 987f8ef81a
commit 43ae825ac0
3 changed files with 24 additions and 24 deletions

View file

@ -7281,13 +7281,13 @@ export class ProfileController extends Controller {
"current_holders.orgChild2",
"current_holders.orgChild3",
"current_holders.orgChild4",
"profileSalary",
// "profileSalary",
],
order: {
profileSalary: {
order: "DESC",
},
},
// order: {
// profileSalary: {
// order: "DESC",
// },
// },
});
if (!profile) {
const profile = await this.profileEmpRepo.findOne({
@ -7301,13 +7301,13 @@ export class ProfileController extends Controller {
"current_holders.orgChild2",
"current_holders.orgChild3",
"current_holders.orgChild4",
"profileSalary",
// "profileSalary",
],
order: {
profileSalary: {
order: "DESC",
},
},
// order: {
// profileSalary: {
// order: "DESC",
// },
// },
});
if (!profile) {
if (request.user.role.includes("SUPER_ADMIN")) {

View file

@ -3494,13 +3494,13 @@ export class ProfileEmployeeController extends Controller {
"current_holders.orgChild2",
"current_holders.orgChild3",
"current_holders.orgChild4",
"profileSalary",
// "profileSalary",
],
order: {
profileSalary: {
order: "DESC",
},
},
// order: {
// profileSalary: {
// order: "DESC",
// },
// },
});
if (!profile) {
if (request.user.role.includes("SUPER_ADMIN")) {

View file

@ -2071,13 +2071,13 @@ export class ProfileEmployeeTempController extends Controller {
"current_holders.orgChild2",
"current_holders.orgChild3",
"current_holders.orgChild4",
"profileSalary",
// "profileSalary",
],
order: {
profileSalary: {
order: "DESC",
},
},
// order: {
// profileSalary: {
// order: "DESC",
// },
// },
});
if (!profile) {
if (request.user.role.includes("SUPER_ADMIN")) {