Saving my work and trying something a little different. Using a number as the id instead of the email address. I feel like this will also cause issues.
This commit is contained in:
@@ -123,10 +123,42 @@ async function handle_load_ae_obj_li__badge({api_cfg, event_id, try_cache=true})
|
||||
}
|
||||
|
||||
|
||||
async function handle_load_ae_obj_id__exhibit({api_cfg, exhibit_id, try_cache=false}) {
|
||||
console.log(`*** handle_load_ae_obj_id__exhibit() *** exhibit_id=${exhibit_id}`);
|
||||
|
||||
let params = {};
|
||||
|
||||
// $events_sess.exhibits.status_load__exhibit_obj = 'loading';
|
||||
ae_promises.load__exhibit_obj = await api.get_ae_obj_id_crud({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'event_exhibit',
|
||||
obj_id: exhibit_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_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: 0
|
||||
})
|
||||
.then(function (exhibit_obj_get_result) {
|
||||
if (exhibit_obj_get_result) {
|
||||
// This is expecting a list
|
||||
handle_db_save_ae_obj_li__exhibitor({obj_type: 'event_exhibit', obj_li: [exhibit_obj_get_result]});
|
||||
return exhibit_obj_get_result;
|
||||
} else {
|
||||
console.log('No results returned.');
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
return ae_promises.load__exhibit_obj;
|
||||
}
|
||||
|
||||
|
||||
// Updated 2024-03-06
|
||||
async function handle_load_ae_obj_li__exhibitor({api_cfg, event_id, try_cache=true}) {
|
||||
console.log(`*** handle_load_ae_obj_li__exhibitor() *** event_id=${event_id}`);
|
||||
async function handle_load_ae_obj_li__exhibit({api_cfg, event_id, try_cache=true}) {
|
||||
console.log(`*** handle_load_ae_obj_li__exhibit() *** event_id=${event_id}`);
|
||||
|
||||
let enabled = 'enabled'; // $events_loc.qry_enabled;
|
||||
let hidden = 'not_hidden'; // $events_loc.qry__hidden;
|
||||
@@ -327,6 +359,7 @@ function handle_db_save_ae_obj_li__exhibitor({obj_type, obj_li}) {
|
||||
let export_obj = {
|
||||
handle_load_ae_obj_id__event: handle_load_ae_obj_id__event,
|
||||
handle_load_ae_obj_li__badge: handle_load_ae_obj_li__badge,
|
||||
handle_load_ae_obj_li__exhibitor: handle_load_ae_obj_li__exhibitor,
|
||||
handle_load_ae_obj_id__exhibit: handle_load_ae_obj_id__exhibit,
|
||||
handle_load_ae_obj_li__exhibit: handle_load_ae_obj_li__exhibit,
|
||||
};
|
||||
export let events_func = export_obj;
|
||||
|
||||
Reference in New Issue
Block a user