Update to all catch functions.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user