General code clean up

This commit is contained in:
Scott Idem
2024-06-24 14:42:14 -04:00
parent 31ba1c9200
commit 0c4185f74c
16 changed files with 56 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ export async function handle_load_ae_obj_id__event(
event_id,
try_cache=false,
log_lvl=0
} : {
}: {
api_cfg: any,
event_id: string,
try_cache?: boolean,
@@ -58,7 +58,7 @@ export async function handle_load_ae_obj_li__event(
params={},
try_cache=true,
log_lvl=0
} : {
}: {
api_cfg: any,
account_id: string,
params?: key_val,
@@ -114,11 +114,19 @@ export async function handle_load_ae_obj_li__event(
// This function will loop through the event_obj_li and save each one to the DB.
export function handle_db_save_ae_obj_li__event({obj_type, obj_li}) {
export function handle_db_save_ae_obj_li__event(
{
obj_type,
obj_li
}: {
obj_type: string,
obj_li: any
}
) {
console.log(`*** handle_db_save_ae_obj_li__event() ***`);
if (obj_li && obj_li.length) {
obj_li.forEach(async function (obj) {
obj_li.forEach(async function (obj: any) {
// console.log(`ae_obj ${obj_type}:`, obj);
try {