Merge branch 'adiDev' into develop

# Conflicts:
#	src/controllers/SalaryController.ts
This commit is contained in:
AdisakKanthawilang 2024-03-08 16:43:19 +07:00
commit f945a5a864

View file

@ -274,12 +274,12 @@ export class Salary extends Controller {
relations: ["posLevel_", "posType_"],
order: {
// startDate: "DESC",
isActive: "ASC",
isActive: "DESC",
posType_: {
posTypeRank: "ASC"
posTypeRank: "DESC"
},
posLevel_: {
posLevelRank: "ASC"
posLevelRank: "DESC"
},
},
...(keyword ? {} : { skip: (page - 1) * pageSize, take: pageSize }),
@ -344,7 +344,6 @@ export class Salary extends Controller {
@Body() body: { id: string },
@Request() request: { user: Record<string, any> },
) {
// try {
const salary = await this.salaryRepository.findOne({
relations: ["posLevel_", "posType_", "salaryRanks_"],
where: { id: body.id },
@ -370,8 +369,5 @@ export class Salary extends Controller {
);
return new HttpSuccess({ id: newSalary.id });
// } catch (error: any) {
// throw new Error(error);
// }
}
}