fix bug sort position org

This commit is contained in:
adisak 2025-09-18 10:42:30 +07:00
parent d823a448bc
commit aa38645561

View file

@ -2355,7 +2355,7 @@ export class PositionController extends Controller {
.addOrderBy("orgChild3.orgChild3Order", "ASC")
.addOrderBy("orgChild4.orgChild4Order", "ASC")
.addOrderBy("posMaster.posMasterOrder", "ASC")
.addOrderBy("posMaster.createdAt", "ASC")
.addOrderBy("posMaster.posMasterCreatedAt", "ASC")
.skip((body.page - 1) * body.pageSize)
.take(body.pageSize)
.getManyAndCount();