Work on bug fix for presenters not being save in the IDB. Also cleaned up the related functions to use the more standard enabled, hidden, limit, and offset params. Other minor clean up

This commit is contained in:
Scott Idem
2025-06-04 11:27:37 -04:00
parent 8279fab244
commit 695a520eb3
4 changed files with 103 additions and 25 deletions

View File

@@ -33,9 +33,11 @@ export async function load({ params, parent }) { // route
if (browser) {
// Load event session object
let load_event_session_obj = events_func.load_ae_obj_id__event_session({
let load_event_session_obj = await events_func.load_ae_obj_id__event_session({
api_cfg: ae_acct.api,
event_session_id: event_session_id,
// inc_presentation_li: true,
// inc_presenter_li: true,
try_cache: true
});
@@ -46,8 +48,13 @@ export async function load({ params, parent }) { // route
api_cfg: ae_acct.api,
for_obj_type: 'event_session',
for_obj_id: event_session_id,
params: {qry__enabled: 'all', qry__limit: 50},
try_cache: true
inc_presenter_li: true,
enabled: 'all',
hidden: 'all',
limit: 19,
// params: {},
try_cache: true,
log_lvl: 2
})
.then((event_presentation_obj_li) => {
if (log_lvl) {
@@ -61,8 +68,12 @@ export async function load({ params, parent }) { // route
api_cfg: ae_acct.api,
for_obj_type: 'event_presentation',
for_obj_id: event_presentation_id,
params: {qry__enabled: 'all', qry__limit: 15},
try_cache: true
enabled: 'all',
hidden: 'all',
limit: 19,
params: {},
try_cache: true,
log_lvl: 2
});
if (log_lvl) {
console.log(`load_event_presenter_obj_li = `, load_event_presenter_obj_li);