Browse Source

refactor(nocodb): add PagedResponseImpl to filterChildrenRead

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
6747257966
  1. 12
      packages/nocodb/src/lib/controllers/filter.ctl.ts

12
packages/nocodb/src/lib/controllers/filter.ctl.ts

@ -21,11 +21,13 @@ export async function filterList(req: Request, res: Response<FilterListType>) {
}
export async function filterChildrenRead(req: Request, res: Response) {
const filter = await filterService.filterChildrenList({
filterId: req.params.filterParentId,
});
res.json(filter);
res.json(
new PagedResponseImpl(
await filterService.filterChildrenList({
filterId: req.params.filterParentId,
})
)
);
}
export async function filterCreate(req: Request<any, any, FilterReqType>, res) {

Loading…
Cancel
Save