Update to all catch functions.

This commit is contained in:
Scott Idem
2025-11-13 20:15:09 -05:00
parent 7cd59bfaac
commit 88d36d512d
52 changed files with 170 additions and 170 deletions

View File

@@ -26,8 +26,8 @@ export async function load_ae_obj_id__archive(
api_cfg: any,
archive_id: string,
inc_content_li?: boolean,
enabled?: string,
hidden?: string,
enabled?: "enabled" | "all" | "not_enabled" | undefined,
hidden?: "hidden" | "all" | "not_hidden" | undefined,
limit?: number,
offset?: number,
params?: key_val,
@@ -86,7 +86,7 @@ export async function load_ae_obj_id__archive(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -148,8 +148,8 @@ export async function load_ae_obj_li__archive(
for_obj_type: string,
for_obj_id: string,
inc_content_li?: boolean,
enabled?: string,
hidden?: string,
enabled?: "enabled" | "all" | "not_enabled" | undefined,
hidden?: "hidden" | "all" | "not_hidden" | undefined,
limit?: number,
offset?: number,
order_by_li?: key_val,
@@ -343,7 +343,7 @@ export async function create_ae_obj__archive(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -385,7 +385,7 @@ export async function delete_ae_obj_id__archive(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -501,8 +501,8 @@ export async function qry__archive(
qry_str?: string,
qry_files?: null|boolean,
qry_start_datetime?: null|string, // Greater than this datetime
enabled?: string, // all, disabled, enabled
hidden?: string, // all, hidden, not_hidden
enabled?: "enabled" | "all" | "not_enabled" | undefined, // all, disabled, enabled
hidden?: "hidden" | "all" | "not_hidden" | undefined, // all, hidden, not_hidden
limit?: number,
offset?: number,
params?: any,
@@ -721,7 +721,7 @@ export async function qry__archive(
// return [];
// }
// })
// .catch(function (error) {
// .catch(function (error: any) {
// console.log('No results returned or failed.', error);
// })
// .finally(function () {

View File

@@ -86,7 +86,7 @@ export async function load_ae_obj_id__archive_content(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -182,7 +182,7 @@ export async function load_ae_obj_li__archive_content(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -270,7 +270,7 @@ export async function create_ae_obj__archive_content(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -312,7 +312,7 @@ export async function delete_ae_obj_id__archive_content(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {