More code clean up

This commit is contained in:
Scott Idem
2026-03-24 10:54:40 -04:00
parent 8e61bd0ba1
commit 42358efe7d
43 changed files with 228 additions and 228 deletions

View File

@@ -32,7 +32,7 @@ export async function load_ae_obj_id__event_device({
}
try {
const result = await api.get_ae_obj_v3({
const result = await api.get_ae_obj({
api_cfg,
obj_type: 'event_device',
obj_id: event_device_id,
@@ -119,7 +119,7 @@ export async function load_ae_obj_li__event_device({
}
try {
const result_li = await api.get_ae_obj_li_v3({
const result_li = await api.get_ae_obj_li({
api_cfg,
obj_type: 'event_device',
for_obj_type,
@@ -257,7 +257,7 @@ export async function delete_ae_obj_id__event_device({
console.log(`*** delete_ae_obj_id__event_device() *** [V3] id=${event_device_id}`);
}
const result = await api.delete_nested_ae_obj_v3({
const result = await api.delete_nested_ae_obj({
api_cfg,
for_obj_type: 'event',
for_obj_id: event_id,
@@ -376,7 +376,7 @@ export async function search__event_device({
if (hidden === 'hidden') search_query.and.push({ field: 'hide', op: 'eq', value: true });
else if (hidden === 'not_hidden') search_query.and.push({ field: 'hide', op: 'eq', value: false });
const result_li = await api.search_ae_obj_v3({
const result_li = await api.search_ae_obj({
api_cfg,
obj_type: 'event_device',
search_query,
@@ -524,7 +524,7 @@ export async function process_ae_obj__event_device_props({
obj_type: 'event_device',
log_lvl,
specific_processor: (obj) => {
// Note: V3 API returns proper ISO strings.
// Note: V3 API returns proper ISO strings.
// We no longer manually append 'Z' to avoid timezone corruption.
return obj;
}