Skip to content

Commit

Permalink
Provided options with get functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-elhaddad committed Nov 7, 2023
1 parent 12f7125 commit d331530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/lists.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d331530

Please sign in to comment.