Work on cleaning up the order by for badges.
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -90,7 +90,7 @@ This is a list of tasks to be completed before the next event/show/conference.
|
||||
|
||||
## Priority Tasks (Easy & Quick)
|
||||
|
||||
- [ ] **API:** Properly investigate and fix the `order_by_li` parameter in the `search__event_badge` function. The parameter is currently commented out as a temporary workaround to prevent a network fetch error.
|
||||
- [x] **API:** Properly investigate and fix the `order_by_li` parameter in the `search__event_badge` function. The parameter is currently commented out as a temporary workaround to prevent a network fetch error.
|
||||
- [ ] **Formatting:** Run `npm run format` to fix code style issues across the project.
|
||||
|
||||
---
|
||||
|
||||
@@ -435,9 +435,9 @@ export async function search__event_badge({
|
||||
limit = 25,
|
||||
offset = 0,
|
||||
order_by_li = {
|
||||
print_count: 'ASC',
|
||||
priority: 'DESC',
|
||||
sort: 'DESC',
|
||||
// print_count: 'ASC',
|
||||
// priority: 'DESC',
|
||||
// sort: 'DESC',
|
||||
given_name: 'ASC',
|
||||
family_name: 'ASC',
|
||||
updated_on: 'DESC',
|
||||
|
||||
@@ -134,9 +134,9 @@
|
||||
return { updated_on: 'ASC' };
|
||||
default:
|
||||
return {
|
||||
print_count: 'ASC',
|
||||
priority: 'DESC',
|
||||
sort: 'DESC',
|
||||
// print_count: 'ASC',
|
||||
// priority: 'DESC',
|
||||
// sort: 'DESC',
|
||||
given_name: 'ASC',
|
||||
family_name: 'ASC',
|
||||
updated_on: 'DESC',
|
||||
|
||||
Reference in New Issue
Block a user