revert 47aa9bef55
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
revert fix(sorting) perbaikan sorting datapull/2/head devel_3.2
parent
47aa9bef55
commit
1a3ecefa0a
|
@ -80,7 +80,5 @@ export function getOrderBy(
|
||||||
: `${tableName}.${baseFilter.order_by}`;
|
: `${tableName}.${baseFilter.order_by}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
queryBuilder.orderBy(`lower(${orderBy})`, orderType);
|
queryBuilder.orderBy(orderBy, orderType);
|
||||||
|
|
||||||
return queryBuilder;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@ import { ORDER_TYPE } from 'src/core/strings/constants/base.constants';
|
||||||
export class IndexUserPrivilegeConfigurationManager extends BaseIndexManager<UserPrivilegeConfigurationEntity> {
|
export class IndexUserPrivilegeConfigurationManager extends BaseIndexManager<UserPrivilegeConfigurationEntity> {
|
||||||
async prepareData(): Promise<void> {
|
async prepareData(): Promise<void> {
|
||||||
Object.assign(this.filterParam, {
|
Object.assign(this.filterParam, {
|
||||||
order_by: this.filterParam.order_by ?? `${this.tableName}.index`,
|
order_by: `${this.tableName}.index`,
|
||||||
order_type: this.filterParam.order_type ?? ORDER_TYPE.ASC,
|
order_type: ORDER_TYPE.ASC,
|
||||||
limit: 100,
|
limit: 100,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue