From 719699762c6d1d67ddc0df893aaa4bd936de9c30 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Wed, 28 Feb 2024 12:40:23 -0800 Subject: [PATCH] add orderBy --- src/pages/api/teams/[teamId]/websites/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/api/teams/[teamId]/websites/index.ts b/src/pages/api/teams/[teamId]/websites/index.ts index e4919d20..dd2fdeff 100644 --- a/src/pages/api/teams/[teamId]/websites/index.ts +++ b/src/pages/api/teams/[teamId]/websites/index.ts @@ -43,13 +43,7 @@ export default async ( return unauthorized(res); } - const { page, query, pageSize } = req.query; - - const websites = await getTeamWebsites(teamId, { - page, - query, - pageSize, - }); + const websites = await getTeamWebsites(teamId, req.query); return ok(res, websites); }