General code clean up
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user