Skip to content

Commit

Permalink
add orderBy
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao authored and franciscao633 committed Feb 28, 2024
1 parent 300a0f6 commit 7196997
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/pages/api/teams/[teamId]/websites/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7196997

Please sign in to comment.