Renaming standard object functions
This commit is contained in:
@@ -45,7 +45,7 @@ export async function load_ae_obj_id__event_session(
|
||||
if (event_session_obj_get_result) {
|
||||
if (try_cache) {
|
||||
// This is expecting a list
|
||||
handle_db_save_ae_obj_li__event_session({
|
||||
db_save_ae_obj_li__event_session({
|
||||
obj_type: 'event_session',
|
||||
obj_li: [event_session_obj_get_result]
|
||||
});
|
||||
@@ -110,7 +110,7 @@ export async function load_ae_obj_id__event_session(
|
||||
// console.log(`ae_promises.load__event_session_obj = `, ae_promises.load__event_session_obj);
|
||||
// ae_promises.load__event_session_obj.event_presentation_li = event_presentation_obj_li;
|
||||
// // Re-save the session object with the new presentation list
|
||||
// handle_db_save_ae_obj_li__event_session({
|
||||
// db_save_ae_obj_li__event_session({
|
||||
// obj_type: 'event_session',
|
||||
// obj_li: [ae_promises.load__event_session_obj]
|
||||
// });
|
||||
@@ -129,7 +129,7 @@ export async function load_ae_obj_id__event_session(
|
||||
|
||||
|
||||
// Updated 2024-08-09
|
||||
export async function handle_load_ae_obj_li__event_session(
|
||||
export async function load_ae_obj_li__event_session(
|
||||
{
|
||||
api_cfg,
|
||||
for_obj_type,
|
||||
@@ -150,7 +150,7 @@ export async function handle_load_ae_obj_li__event_session(
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
console.log(`*** handle_load_ae_obj_li__event_session() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`);
|
||||
console.log(`*** load_ae_obj_li__event_session() *** for_obj_type=${for_obj_type} for_obj_id=${for_obj_id}`);
|
||||
|
||||
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
|
||||
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
|
||||
@@ -180,7 +180,7 @@ export async function handle_load_ae_obj_li__event_session(
|
||||
.then(function (event_session_obj_li_get_result) {
|
||||
if (event_session_obj_li_get_result) {
|
||||
if (try_cache) {
|
||||
handle_db_save_ae_obj_li__event_session({
|
||||
db_save_ae_obj_li__event_session({
|
||||
obj_type: 'event_session',
|
||||
obj_li: event_session_obj_li_get_result
|
||||
});
|
||||
@@ -252,7 +252,7 @@ export async function handle_load_ae_obj_li__event_session(
|
||||
// console.log(`event_session_obj = `, event_session_obj);
|
||||
// event_session_obj.event_presentation_li = event_presentation_obj_li;
|
||||
// // Re-save the session object with the new presentation list
|
||||
// handle_db_save_ae_obj_li__event_session({
|
||||
// db_save_ae_obj_li__event_session({
|
||||
// obj_type: 'event_session',
|
||||
// obj_li: event_session_obj
|
||||
// });
|
||||
@@ -370,7 +370,7 @@ export async function qry__event_session(
|
||||
})
|
||||
.then(function (event_session_obj_li_get_result) {
|
||||
if (event_session_obj_li_get_result) {
|
||||
handle_db_save_ae_obj_li__event_session({obj_type: 'event_session', obj_li: event_session_obj_li_get_result});
|
||||
db_save_ae_obj_li__event_session({obj_type: 'event_session', obj_li: event_session_obj_li_get_result});
|
||||
return event_session_obj_li_get_result;
|
||||
} else {
|
||||
return [];
|
||||
@@ -384,7 +384,7 @@ export async function qry__event_session(
|
||||
}
|
||||
|
||||
|
||||
export async function handle_search__event_session(
|
||||
export async function search__event_session(
|
||||
{
|
||||
api_cfg,
|
||||
event_id,
|
||||
@@ -411,7 +411,7 @@ export async function handle_search__event_session(
|
||||
log_lvl?: number
|
||||
}
|
||||
) {
|
||||
console.log(`*** handle_search__event_session() *** event_id=${event_id}`);
|
||||
console.log(`*** search__event_session() *** event_id=${event_id}`);
|
||||
|
||||
let enabled: string = (params.qry__enabled ?? 'enabled'); // all, disabled, enabled
|
||||
let hidden: string = (params.qry__hidden ?? 'not_hidden'); // all, hidden, not_hidden
|
||||
@@ -487,7 +487,7 @@ export async function handle_search__event_session(
|
||||
})
|
||||
.then(function (event_session_obj_li_get_result) {
|
||||
if (event_session_obj_li_get_result) {
|
||||
handle_db_save_ae_obj_li__event_session({obj_type: 'event_session', obj_li: event_session_obj_li_get_result});
|
||||
db_save_ae_obj_li__event_session({obj_type: 'event_session', obj_li: event_session_obj_li_get_result});
|
||||
return event_session_obj_li_get_result;
|
||||
} else {
|
||||
return [];
|
||||
@@ -507,7 +507,7 @@ export async function handle_search__event_session(
|
||||
|
||||
|
||||
// This function will loop through the event_session_obj_li and save each one to the DB.
|
||||
export function handle_db_save_ae_obj_li__event_session(
|
||||
export function db_save_ae_obj_li__event_session(
|
||||
{
|
||||
obj_type,
|
||||
obj_li
|
||||
@@ -516,7 +516,7 @@ export function handle_db_save_ae_obj_li__event_session(
|
||||
obj_li: any
|
||||
}
|
||||
) {
|
||||
console.log(`*** handle_db_save_ae_obj_li__event_session() ***`);
|
||||
console.log(`*** db_save_ae_obj_li__event_session() ***`);
|
||||
|
||||
if (obj_li && obj_li.length) {
|
||||
obj_li.forEach(async function (obj: any) {
|
||||
@@ -608,7 +608,7 @@ export function handle_db_save_ae_obj_li__event_session(
|
||||
|
||||
// This is intended for the Point of Contact (POC) for the session.
|
||||
// Updated 2024-07-01
|
||||
export async function handle_email_sign_in__event_session (
|
||||
export async function email_sign_in__event_session (
|
||||
{
|
||||
api_cfg,
|
||||
to_email,
|
||||
@@ -629,7 +629,7 @@ export async function handle_email_sign_in__event_session (
|
||||
session_name: string,
|
||||
}
|
||||
) {
|
||||
console.log(`*** handle_email_sign_in__event_session() *** to_email=${to_email} to_name=${to_name} person_id=${person_id} person_passcode=${person_passcode} session_id=${event_session_id}`);
|
||||
console.log(`*** email_sign_in__event_session() *** to_email=${to_email} to_name=${to_name} person_id=${person_id} person_passcode=${person_passcode} session_id=${event_session_id}`);
|
||||
|
||||
let subject = `LCI Congress 2024 - Pres Mgmt Hub Sign In Link for ${session_name} (ID: ${event_session_id})`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user