This commit is contained in:
AdisakKanthawilang 2024-04-23 18:15:27 +07:00
parent 5db5f445c8
commit 92e6a98d1d
3 changed files with 3 additions and 1 deletions

View file

@ -239,7 +239,7 @@ export class kpiCapacityController extends Controller {
: [{ name: Like(`%${keyword}%`) }, { description: Like(`%${keyword}%`) }],
)
.andWhere(type == undefined ? "1=1" : { type: type })
.orderBy("kpiCapacityDetail.level", "ASC")
.orderBy("kpiCapacity.createdAt", "ASC")
.skip((page - 1) * pageSize)
.take(pageSize)
.getManyAndCount();