Improvement with file counts and related

This commit is contained in:
Scott Idem
2024-08-09 19:33:47 -04:00
parent d7dfef4fe0
commit 074cf154f2
3 changed files with 14 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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,

View File

@@ -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;