add orderBy

This commit is contained in:
Brian Cao 2024-02-28 12:40:23 -08:00 committed by Francis Cao
parent 300a0f63e7
commit 719699762c

View File

@ -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);
}