fix: 修复排序失效的bug

This commit is contained in:
xiaojunnuo
2024-10-14 14:00:24 +08:00
parent cf92db7ed1
commit 1f0742ef9f
5 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ export class CnameRecordController extends CrudController<CnameRecordService> {
const pageRet = await this.getService().page({
query: body.query,
page: body.page,
order: body.order,
sort: body.sort,
buildQuery: bq,
});
return this.ok(pageRet);

View File

@@ -26,7 +26,7 @@ export class AccessController extends CrudController<AccessService> {
const res = await this.service.page({
query: body.query,
page: body.page,
order: body.order,
sort: body.sort,
buildQuery,
});
return this.ok(res);

View File

@@ -68,7 +68,7 @@ export class HistoryController extends CrudController<HistoryService> {
const res = await this.service.page({
query: body.query,
page: body.page,
order: body.order,
sort: body.sort,
buildQuery,
});
return this.ok(res);
@@ -88,7 +88,7 @@ export class HistoryController extends CrudController<HistoryService> {
};
const listRet = await this.getService().list({
query: body,
order: { prop: 'id', asc: false },
sort: { prop: 'id', asc: false },
buildQuery,
});
return this.ok(listRet);

View File

@@ -47,7 +47,7 @@ export class PipelineController extends CrudController<PipelineService> {
const pageRet = await this.getService().page({
query: body.query,
page: body.page,
order: body.order,
sort: body.sort,
buildQuery,
});
return this.ok(pageRet);