Improvement with file counts and related
This commit is contained in:
@@ -178,6 +178,9 @@ export function handle_db_save_ae_obj_li__event(
|
|||||||
|
|
||||||
// From SQL view
|
// From SQL view
|
||||||
file_count: obj.file_count,
|
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}`);
|
// console.log(`Put obj with ID: ${obj.event_id_random} or ${id_random}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export async function handle_load_ae_obj_id__event_location(
|
|||||||
api_cfg: api_cfg,
|
api_cfg: api_cfg,
|
||||||
obj_type: 'event_location',
|
obj_type: 'event_location',
|
||||||
obj_id: event_location_id, // NOTE: This is the FQDN, not normally the ID.
|
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.
|
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,
|
params: params,
|
||||||
log_lvl: log_lvl
|
log_lvl: log_lvl
|
||||||
@@ -165,7 +165,7 @@ export async function handle_load_ae_obj_li__event_location(
|
|||||||
obj_type: 'event_location',
|
obj_type: 'event_location',
|
||||||
for_obj_type: 'event',
|
for_obj_type: 'event',
|
||||||
for_obj_id: event_id,
|
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
|
use_alt_base: false, // NOTE: This will use the base_name_alt value instead of the base_name value
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
hidden: hidden,
|
hidden: hidden,
|
||||||
@@ -492,6 +492,7 @@ export function handle_db_save_ae_obj_li__event_location(
|
|||||||
file_count: obj.file_count,
|
file_count: obj.file_count,
|
||||||
file_count_all: obj.file_count_all,
|
file_count_all: obj.file_count_all,
|
||||||
internal_use_count: obj.internal_use_count,
|
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_given_name: obj.poc_person_given_name,
|
||||||
// poc_person_family_name: obj.poc_person_family_name,
|
// poc_person_family_name: obj.poc_person_family_name,
|
||||||
|
|||||||
@@ -44,7 +44,10 @@ export interface Event {
|
|||||||
updated_on: null|Date;
|
updated_on: null|Date;
|
||||||
|
|
||||||
// Additional fields for convenience (database views)
|
// 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?: null|number;
|
||||||
file_count_all?: null|number;
|
file_count_all?: null|number;
|
||||||
internal_use_count?: null|number;
|
internal_use_count?: null|number;
|
||||||
|
event_file_id_li_json?: null|string;
|
||||||
|
|
||||||
event_name?: null|string;
|
event_name?: null|string;
|
||||||
|
|
||||||
@@ -497,6 +501,9 @@ export interface Presenter {
|
|||||||
|
|
||||||
// Additional fields for convenience (database views)
|
// Additional fields for convenience (database views)
|
||||||
file_count?: null|number;
|
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_code?: null|string;
|
||||||
event_session_name?: string;
|
event_session_name?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user