sort date position history
This commit is contained in:
parent
910e568973
commit
1cd3876b3e
3 changed files with 3 additions and 0 deletions
|
|
@ -2485,6 +2485,7 @@ export class EmployeePositionController extends Controller {
|
||||||
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
||||||
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
||||||
where: { ancestorDNA: id },
|
where: { ancestorDNA: id },
|
||||||
|
order: { createdAt: "DESC" },
|
||||||
});
|
});
|
||||||
|
|
||||||
return new HttpSuccess(posMasterHistory);
|
return new HttpSuccess(posMasterHistory);
|
||||||
|
|
|
||||||
|
|
@ -2221,6 +2221,7 @@ export class EmployeeTempPositionController extends Controller {
|
||||||
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
||||||
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
||||||
where: { ancestorDNA: id },
|
where: { ancestorDNA: id },
|
||||||
|
order: { createdAt: "DESC" },
|
||||||
});
|
});
|
||||||
|
|
||||||
return new HttpSuccess(posMasterHistory);
|
return new HttpSuccess(posMasterHistory);
|
||||||
|
|
|
||||||
|
|
@ -5636,6 +5636,7 @@ export class PositionController extends Controller {
|
||||||
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
async listPosMasterHistory(@Path() id: string, @Request() request: RequestWithUser) {
|
||||||
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
const posMasterHistory = await this.posMasterHistoryRepository.find({
|
||||||
where: { ancestorDNA: id },
|
where: { ancestorDNA: id },
|
||||||
|
order: { createdAt: "DESC" },
|
||||||
});
|
});
|
||||||
|
|
||||||
return new HttpSuccess(posMasterHistory);
|
return new HttpSuccess(posMasterHistory);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue