Improved sorting for badges. Waiting on an API fix to include the missing badge fields. I think only the minimum is being returned. We need things like the print_count, print_first_datetime, and other fields.
This commit is contained in:
@@ -466,7 +466,7 @@ export async function search__event_badge({
|
||||
log_lvl?: number;
|
||||
}) {
|
||||
if (log_lvl) {
|
||||
console.log(`*** search__event_badge() *** event_id=${event_id} printed_status=${printed_status} affiliations=${affiliations_qry_str}`);
|
||||
console.log(`*** search__event_badge() *** event_id=${event_id} printed_status=${printed_status} affiliations=${affiliations_qry_str} order_by_li=`, order_by_li);
|
||||
}
|
||||
|
||||
if (!fulltext_search_qry_str && !like_search_qry_str && !affiliations_qry_str && !type_code && !external_event_id && printed_status === 'all') {
|
||||
@@ -633,6 +633,8 @@ export const properties_to_save = [
|
||||
'updated_on',
|
||||
|
||||
'print_count',
|
||||
'print_first_datetime',
|
||||
'print_last_datetime',
|
||||
|
||||
// Generated fields for sorting locally only
|
||||
'tmp_sort_1',
|
||||
|
||||
Reference in New Issue
Block a user