add orderby to query.
This commit is contained in:
1 parent
e68d1b3233
commit
300a0f63e7
2 files changed
+2
-14
No files matched your search
@@ -39,13 +39,7 @@ export default async (
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const { page, query, pageSize } = req.query;
|
||||
|
||||
const teams = await getUserTeams(userId as string, {
|
||||
query,
|
||||
page,
|
||||
pageSize,
|
||||
});
|
||||
const teams = await getUserTeams(userId as string, req.query);
|
||||
|
||||
return ok(res, teams);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user