From 5dc2c9e420d428b4722198d6db839ec1bcbf4b74 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 10 Mar 2023 17:53:57 +0800 Subject: [PATCH] refactor(nocodb): add PagedResponseImpl to hookFilterList --- packages/nocodb/src/lib/controllers/filter.ctl.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/lib/controllers/filter.ctl.ts b/packages/nocodb/src/lib/controllers/filter.ctl.ts index bef2b240e1..b8c220d723 100644 --- a/packages/nocodb/src/lib/controllers/filter.ctl.ts +++ b/packages/nocodb/src/lib/controllers/filter.ctl.ts @@ -53,9 +53,11 @@ export async function filterDelete(req: Request, res: Response) { export async function hookFilterList(req: Request, res: Response) { res.json( - await filterService.hookFilterList({ - hookId: req.params.hookId, - }) + new PagedResponseImpl( + await filterService.hookFilterList({ + hookId: req.params.hookId, + }) + ) ); }