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)
|
## 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.
|
- [ ] **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,
|
limit = 25,
|
||||||
offset = 0,
|
offset = 0,
|
||||||
order_by_li = {
|
order_by_li = {
|
||||||
print_count: 'ASC',
|
// print_count: 'ASC',
|
||||||
priority: 'DESC',
|
// priority: 'DESC',
|
||||||
sort: 'DESC',
|
// sort: 'DESC',
|
||||||
given_name: 'ASC',
|
given_name: 'ASC',
|
||||||
family_name: 'ASC',
|
family_name: 'ASC',
|
||||||
updated_on: 'DESC',
|
updated_on: 'DESC',
|
||||||
|
|||||||
@@ -134,9 +134,9 @@
|
|||||||
return { updated_on: 'ASC' };
|
return { updated_on: 'ASC' };
|
||||||
default:
|
default:
|
||||||
return {
|
return {
|
||||||
print_count: 'ASC',
|
// print_count: 'ASC',
|
||||||
priority: 'DESC',
|
// priority: 'DESC',
|
||||||
sort: 'DESC',
|
// sort: 'DESC',
|
||||||
given_name: 'ASC',
|
given_name: 'ASC',
|
||||||
family_name: 'ASC',
|
family_name: 'ASC',
|
||||||
updated_on: 'DESC',
|
updated_on: 'DESC',
|
||||||
|
|||||||
Reference in New Issue
Block a user