fix: Consolidate type and parameter fixes across multiple modules

- API: Standardized 'order_by_li' types in event and archive modules.
- API: Corrected 'enabled'/'hidden' parameter types in event exhibit and device search/list functions.
- Type Safety: Addressed generic type casting issues in _process_generic_props across event modules.
- Data Handling: Resolved return type consistency in journal creation and DB save operations.
- Parameter Management: Fixed missing 'try_cache' parameters in event exhibit functions.
- Core Logic: Ensured correct object properties in DB put operations for hosted files.
This commit is contained in:
Scott Idem
2026-01-15 19:56:37 -05:00
parent ee1ca93894
commit c7d63da8a1
5 changed files with 3593 additions and 21 deletions

View File

@@ -545,14 +545,14 @@ async function update_ae_obj_id_crud_v2({
`Not Patched - Field Name: ${field_name} with new Field Value: ${new_field_value}; Account ID: ${api_cfg.account_id}`
);
patch_result = 'PATCH failed';
return false;
return null;
}
return true;
return null;
})
.catch(function (error: any) {
console.log('Something went wrong patching the record.');
console.log(error);
return false;
return null;
})
.finally(function () {
console.log('PATCH Promise finally');