diff --git a/src/lib/ae_events__event.ts b/src/lib/ae_events__event.ts index d04d91b9..c960bc22 100644 --- a/src/lib/ae_events__event.ts +++ b/src/lib/ae_events__event.ts @@ -178,6 +178,9 @@ export function handle_db_save_ae_obj_li__event( // From SQL view file_count: obj.file_count, + file_count_all: obj.file_count_all, + internal_use_count: obj.internal_use_count, + event_file_id_li_json: obj.event_file_id_li_json, }); // console.log(`Put obj with ID: ${obj.event_id_random} or ${id_random}`); } catch (error) { diff --git a/src/lib/ae_events__event_location.ts b/src/lib/ae_events__event_location.ts index 2f3d56b2..5d916460 100644 --- a/src/lib/ae_events__event_location.ts +++ b/src/lib/ae_events__event_location.ts @@ -36,7 +36,7 @@ export async function handle_load_ae_obj_id__event_location( api_cfg: api_cfg, obj_type: 'event_location', obj_id: event_location_id, // NOTE: This is the FQDN, not normally the ID. - use_alt_table: false, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config. + use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config. use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value in the API config. params: params, log_lvl: log_lvl @@ -165,7 +165,7 @@ export async function handle_load_ae_obj_li__event_location( obj_type: 'event_location', for_obj_type: 'event', for_obj_id: event_id, - use_alt_table: false, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config. + use_alt_table: true, // NOTE: This will use the table_name_alt value instead of the table_name value in the API config. use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value enabled: enabled, hidden: hidden, @@ -492,6 +492,7 @@ export function handle_db_save_ae_obj_li__event_location( file_count: obj.file_count, file_count_all: obj.file_count_all, internal_use_count: obj.internal_use_count, + event_file_id_li_json: obj.event_file_id_li_json, // poc_person_given_name: obj.poc_person_given_name, // poc_person_family_name: obj.poc_person_family_name, diff --git a/src/lib/db_events.ts b/src/lib/db_events.ts index 7f103603..e82e5026 100644 --- a/src/lib/db_events.ts +++ b/src/lib/db_events.ts @@ -44,7 +44,10 @@ export interface Event { updated_on: null|Date; // Additional fields for convenience (database views) - file_count?: number; + file_count?: null|number; + file_count_all?: null|number; + internal_use_count?: null|number; + event_file_id_li_json?: null|string; } @@ -295,6 +298,7 @@ export interface Location { file_count?: null|number; file_count_all?: null|number; internal_use_count?: null|number; + event_file_id_li_json?: null|string; event_name?: null|string; @@ -497,6 +501,9 @@ export interface Presenter { // Additional fields for convenience (database views) file_count?: null|number; + // file_count_all?: null|number; + // internal_use_count?: null|number; + event_file_id_li_json?: null|string; event_session_code?: null|string; event_session_name?: string;