fix order

This commit is contained in:
Bright 2024-11-28 17:49:15 +07:00
parent 7469393551
commit 1837cf09ac
4 changed files with 5 additions and 5 deletions

View file

@ -314,7 +314,7 @@ export class DevelopmentOfficerHistoryController extends Controller {
}),
)
.orderBy("development.year", "DESC")
.orderBy("developmentHistory.createdAt", "DESC")
.addOrderBy("developmentHistory.createdAt", "DESC")
.skip((body.page - 1) * body.pageSize)
.take(body.pageSize)
.getManyAndCount();