Could not sleep. Working on the search for badges.
This commit is contained in:
@@ -411,13 +411,14 @@ export async function search__event_badge({
|
||||
params_json['and_qry']['badge_type_code'] = type_code;
|
||||
}
|
||||
|
||||
ae_promises.search__event_badge_obj_li = await api.get_ae_obj_li_for_obj_id_crud({
|
||||
// ae_promises.search__event_badge_obj_li = await api.get_ae_obj_li_for_obj_id_crud({
|
||||
ae_promises.search__event_badge_obj_li = await api.get_ae_obj_li_for_obj_id_crud_v2({
|
||||
api_cfg,
|
||||
obj_type: 'event_badge',
|
||||
for_obj_type: 'event',
|
||||
for_obj_id: event_id,
|
||||
use_alt_table: false,
|
||||
use_alt_base: false,
|
||||
use_alt_tbl: false,
|
||||
use_alt_mdl: true,
|
||||
enabled,
|
||||
hidden,
|
||||
order_by_li,
|
||||
@@ -534,6 +535,8 @@ export const properties_to_save = [
|
||||
'external_id',
|
||||
'external_person_id',
|
||||
|
||||
'default_qry_string',
|
||||
|
||||
'alert',
|
||||
|
||||
'enable',
|
||||
@@ -631,6 +634,8 @@ export async function process_ae_obj__event_badge_props({
|
||||
external_id: obj.external_id,
|
||||
external_person_id: obj.external_person_id,
|
||||
|
||||
default_qry_string: obj.default_qry_string,
|
||||
|
||||
alert: obj.alert,
|
||||
|
||||
enable: obj.enable,
|
||||
@@ -642,8 +647,8 @@ export async function process_ae_obj__event_badge_props({
|
||||
created_on: obj.created_on,
|
||||
updated_on: obj.updated_on,
|
||||
|
||||
tmp_sort_1: obj.tmp_sort_1,
|
||||
tmp_sort_2: obj.tmp_sort_2,
|
||||
tmp_sort_1: `${obj.group}_${obj.priority}_${obj.sort}_${obj.updated_on ?? obj.created_on}`,
|
||||
tmp_sort_2: `${obj.print_count}_${obj.priority}_${obj.sort}_${obj.given_name}_${obj.family_name}_${obj.updated_on}_${obj.created_on}`,
|
||||
|
||||
person_external_id: obj.person_external_id,
|
||||
person_external_sys_id: obj.person_external_sys_id,
|
||||
|
||||
Reference in New Issue
Block a user