From d331530bdfba0366096376698ea2d01ec9355f8d Mon Sep 17 00:00:00 2001 From: Abdelrrahman Elhaddad Date: Tue, 7 Nov 2023 09:41:31 +0200 Subject: [PATCH] Provided options with get functions --- src/controllers/lists.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/lists.controller.ts b/src/controllers/lists.controller.ts index 7388fba..29ab07a 100644 --- a/src/controllers/lists.controller.ts +++ b/src/controllers/lists.controller.ts @@ -33,7 +33,7 @@ export const getLists = async (req: Request, res: Response, next: NextFunction) export const getList = async (req: Request, res: Response, next: NextFunction) => { try { const { l_id } = req.params; - const { page = 1, limit = 10, sort, t_status } = req.query; + const { page, limit, sort, t_status } = req.query; const list = await Lists.get(Number(l_id), { page: Number(page), limit: Number(limit),