Various bug fixes for CHOW

This commit is contained in:
Scott Idem
2024-04-01 20:48:16 -04:00
parent 78b5fc1068
commit 3abe92a2dc
11 changed files with 77 additions and 45 deletions

View File

@@ -36,7 +36,7 @@ async function handle_load_ae_obj_id__sponsorship_cfg(
let params = {};
// ae_loc.hub.sponsorships.qry_status = 'loading';
ae_promises.load__sponsorship_cfg_obj = await api.get_ae_obj_id_crud({
ae_promises.load__sponsorship_cfg_obj = api.get_ae_obj_id_crud({
api_cfg: api_cfg,
obj_type: 'sponsorship_cfg',
obj_id: sponsorship_cfg_id,
@@ -49,6 +49,8 @@ async function handle_load_ae_obj_id__sponsorship_cfg(
if (sponsorship_cfg_obj_get_result) {
if (log_lvl) {
console.log(`*ae_func* Got a result for sponsorship_cfg_id ${sponsorship_cfg_id}`);
} else if (log_lvl > 1) {
console.log(`*ae_func* Got a result for sponsorship_cfg_id ${sponsorship_cfg_id}:`, sponsorship_cfg_obj_get_result);
}
return sponsorship_cfg_obj_get_result;
} else {