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

@@ -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. // 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() ***`); console.log(`*** handle_db_save_ae_obj_li__event() ***`);
if (obj_li && obj_li.length) { 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); // console.log(`ae_obj ${obj_type}:`, obj);
try { try {

View File

@@ -1,6 +1,10 @@
// This file is used to export all the functions that are used for Aether Events related functions. // This file is used to export all the functions that are used for Aether Events related functions.
import { handle_load_ae_obj_id__event, handle_load_ae_obj_li__event, handle_db_save_ae_obj_li__event } from "$lib/ae_events__event"; import {
handle_load_ae_obj_id__event,
handle_load_ae_obj_li__event,
handle_db_save_ae_obj_li__event
} from "$lib/ae_events__event";
import { import {
handle_load_ae_obj_id__event_file, handle_load_ae_obj_id__event_file,