General code clean up
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
// 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 {
|
||||
handle_load_ae_obj_id__event_file,
|
||||
|
||||
Reference in New Issue
Block a user