Renaming more of the standard object functions.

This commit is contained in:
Scott Idem
2024-08-14 16:16:56 -04:00
parent 0ec9cbbd08
commit cc4588c8a6
16 changed files with 108 additions and 108 deletions

View File

@@ -7,7 +7,7 @@ let ae_promises: key_val = {};
// Updated 2024-06-20
export async function handle_load_ae_obj_id__event_presentation(
export async function load_ae_obj_id__event_presentation(
{
api_cfg,
event_presentation_id,
@@ -20,7 +20,7 @@ export async function handle_load_ae_obj_id__event_presentation(
log_lvl?: number
}
) {
console.log(`*** handle_load_ae_obj_id__event_presentation() *** event_presentation_id=${event_presentation_id}`);
console.log(`*** load_ae_obj_id__event_presentation() *** event_presentation_id=${event_presentation_id}`);
let params = {};
@@ -36,7 +36,7 @@ export async function handle_load_ae_obj_id__event_presentation(
.then(function (event_presentation_obj_get_result) {
if (event_presentation_obj_get_result) {
// This is expecting a list
handle_db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: [event_presentation_obj_get_result]});
db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: [event_presentation_obj_get_result]});
return event_presentation_obj_get_result;
} else {
console.log('No results returned.');
@@ -52,7 +52,7 @@ export async function handle_load_ae_obj_id__event_presentation(
// Updated 2024-06-10
export async function handle_load_ae_obj_li__event_presentation(
export async function load_ae_obj_li__event_presentation(
{
api_cfg,
event_session_id,
@@ -67,7 +67,7 @@ export async function handle_load_ae_obj_li__event_presentation(
log_lvl?: number
}
) {
console.log(`*** handle_load_ae_obj_li__event_presentation() *** event_session_id=${event_session_id}`);
console.log(`*** load_ae_obj_li__event_presentation() *** event_session_id=${event_session_id}`);
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
@@ -96,7 +96,7 @@ export async function handle_load_ae_obj_li__event_presentation(
})
.then(function (event_presentation_obj_li_get_result) {
if (event_presentation_obj_li_get_result) {
handle_db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: event_presentation_obj_li_get_result});
db_save_ae_obj_li__event_presentation({obj_type: 'event_presentation', obj_li: event_presentation_obj_li_get_result});
return event_presentation_obj_li_get_result;
} else {
return [];
@@ -114,7 +114,7 @@ export async function handle_load_ae_obj_li__event_presentation(
// Updated 2024-06-24
export async function handle_create_ae_obj__event_presentation(
export async function create_ae_obj__event_presentation(
{
api_cfg,
event_id,
@@ -131,7 +131,7 @@ export async function handle_create_ae_obj__event_presentation(
log_lvl?: number
}
) {
console.log(`*** handle_create_ae_obj__event_presentation() *** event_id=${event_id} event_session_id=${event_session_id}`);
console.log(`*** create_ae_obj__event_presentation() *** event_id=${event_id} event_session_id=${event_session_id}`);
ae_promises.create__event_presentation = await api.create_ae_obj_crud({
api_cfg: api_cfg,
@@ -148,7 +148,7 @@ export async function handle_create_ae_obj__event_presentation(
})
.then(function (event_presentation_obj_create_result) {
if (event_presentation_obj_create_result) {
handle_db_save_ae_obj_li__event_presentation(
db_save_ae_obj_li__event_presentation(
{
obj_type: 'event_presentation',
obj_li: [event_presentation_obj_create_result]
@@ -173,7 +173,7 @@ export async function handle_create_ae_obj__event_presentation(
// This function will loop through the event_presentation_obj_li and save each one to the DB.
// Updated 2024-06-10
export function handle_db_save_ae_obj_li__event_presentation(
export function db_save_ae_obj_li__event_presentation(
{
obj_type,
obj_li
@@ -182,7 +182,7 @@ export function handle_db_save_ae_obj_li__event_presentation(
obj_li: any
}
) {
console.log(`*** handle_db_save_ae_obj_li__event_presentation() ***`);
console.log(`*** db_save_ae_obj_li__event_presentation() ***`);
if (obj_li && obj_li.length) {
obj_li.forEach(async function (obj: any) {