Skip to content

Commit

Permalink
fix: update sort params for accessible items (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Dec 19, 2023
1 parent 52a50df commit 2bf6524
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export type ItemSearchParams =
creatorId?: Member['id'];
name?: string;
ordering?: 'desc' | 'asc';
sortBy?: 'name' | 'type' | 'creator' | 'created_at' | 'updated_at';
sortBy?:
| 'item.name'
| 'item.type'
| 'item.creator.name'
| 'item.created_at'
| 'item.updated_at';
}
| undefined;
export const buildGetAccessibleItems = (
Expand Down

0 comments on commit 2bf6524

Please sign in to comment.