add orderBy

This commit is contained in:
Brian Cao 2024-02-28 12:40:23 -08:00
parent 3d6cdddd38
commit ec11bd7cfe

View File

@ -43,13 +43,7 @@ export default async (
return unauthorized(res); return unauthorized(res);
} }
const { page, query, pageSize } = req.query; const websites = await getTeamWebsites(teamId, req.query);
const websites = await getTeamWebsites(teamId, {
page,
query,
pageSize,
});
return ok(res, websites); return ok(res, websites);
} }