Standardizing how things are reloaded. Triggers again!

This commit is contained in:
Scott Idem
2024-11-19 18:15:45 -05:00
parent e2d67087ce
commit bf29856f6b
5 changed files with 132 additions and 74 deletions

View File

@@ -108,6 +108,10 @@ export async function load_ae_obj_li__event(
inc_presentation_li = false,
inc_presenter_li = false,
inc_session_li = false,
enabled = 'enabled',
hidden = 'not_hidden',
limit = 99,
offset = 0,
order_by_li = {'start_datetime': 'DESC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
params_json = null,
params = {},
@@ -124,6 +128,10 @@ export async function load_ae_obj_li__event(
inc_presentation_li?: boolean,
inc_presenter_li?: boolean,
inc_session_li?: boolean,
enabled?: string,
hidden?: string,
limit?: number,
offset?: number,
order_by_li?: key_val,
params_json?: null|key_val,
params?: key_val,
@@ -133,11 +141,6 @@ export async function load_ae_obj_li__event(
) {
console.log(`*** load_ae_obj_li__event() *** 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
let limit: number = (params.qry__limit ?? 99); // 99
let offset: number = (params.qry__offset ?? 0); // 0
// There is probably a better way to handle this. I don't want to just start a new object if it is not passed. However, the qry_conference and qry_str are sort of a special case. -2024-10-01
if (!params_json) {
params_json = {};