More work on the event object functions. Also a minor update to the recent files list options.

This commit is contained in:
Scott Idem
2025-05-23 16:45:29 -04:00
parent 7c70d93a68
commit 5cf076fbe3
6 changed files with 142 additions and 47 deletions

View File

@@ -551,7 +551,9 @@ export async function search__event_device(
})
.then(function (event_device_obj_li_get_result) {
if (event_device_obj_li_get_result) {
db_save_ae_obj_li__event_device({obj_type: 'event_device', obj_li: event_device_obj_li_get_result});
if (try_cache) {
db_save_ae_obj_li__event_device({obj_type: 'event_device', obj_li: event_device_obj_li_get_result});
}
return event_device_obj_li_get_result;
} else {
return [];
@@ -760,13 +762,13 @@ export async function process_ae_obj__event_device_props({
if (log_lvl) console.log(`Processing ae_obj event_device:`, obj);
let processed_obj = {
id: obj.id,
event_device_id: obj.event_device_id,
id: obj.event_device_id_random,
event_device_id: obj.event_device_id_random,
event_device_id_random: obj.event_device_id_random,
event_id: obj.event_id,
event_id: obj.event_id_random,
event_id_random: obj.event_id_random,
event_location_id: obj.event_location_id,
event_location_id: obj.event_location_id_random,
event_location_id_random: obj.event_location_id_random,
code: obj.code,