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

@@ -387,7 +387,7 @@ export async function qry__event_file(
}
// Updated 2024-07-12
// Updated 2025-05-23
export async function search__event_file(
{
api_cfg,
@@ -499,7 +499,9 @@ export async function search__event_file(
})
.then(function (event_file_obj_li_get_result) {
if (event_file_obj_li_get_result) {
db_save_ae_obj_li__event_file({obj_type: 'event_file', obj_li: event_file_obj_li_get_result});
if (try_cache) {
db_save_ae_obj_li__event_file({obj_type: 'event_file', obj_li: event_file_obj_li_get_result});
}
return event_file_obj_li_get_result;
} else {
return [];
@@ -809,7 +811,7 @@ export async function process_ae_obj__event_file_props({
hash_sha256: obj.hash_sha256,
for_type: obj.for_type,
for_id: obj.for_id,
for_id: obj.for_id_random,
for_id_random: obj.for_id_random,
event_id: obj.event_id_random,