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

@@ -89,7 +89,7 @@ export async function load_ae_obj_id__event(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -337,7 +337,7 @@ export async function load_ae_obj_li__event(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -649,7 +649,7 @@ export async function create_ae_obj__event(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -693,7 +693,7 @@ export async function delete_ae_obj_id__event(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -776,7 +776,7 @@ export async function update_ae_obj__event(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -57,7 +57,7 @@ export async function load_ae_obj_id__event_badge({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -155,7 +155,7 @@ export async function load_ae_obj_li__event_badge({
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -237,7 +237,7 @@ export async function create_ae_obj__event_badge({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.create__event_badge;
@@ -272,7 +272,7 @@ export async function delete_ae_obj_id__event_badge({
method,
log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -336,7 +336,7 @@ export async function update_ae_obj__event_badge({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.update__event_badge_obj;
@@ -503,7 +503,7 @@ export async function search__event_badge({
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.search__event_badge_obj_li;

View File

@@ -251,7 +251,7 @@ export async function load_ae_obj_id__event_badge_template({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.load__event_badge_template_obj;
@@ -321,7 +321,7 @@ export async function load_ae_obj_li__event_badge_template({
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.load__event_badge_template_obj_li;
@@ -377,7 +377,7 @@ export async function create_ae_obj__event_badge_template({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.create__event_badge_template;
@@ -410,7 +410,7 @@ export async function delete_ae_obj_id__event_badge_template({
method,
log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -472,7 +472,7 @@ export async function update_ae_obj__event_badge_template({
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.update__event_badge_template_obj;
@@ -554,7 +554,7 @@ export async function search__event_badge_template({
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
return ae_promises.search__event_badge_template_obj_li;

View File

@@ -74,7 +74,7 @@ export async function load_ae_obj_id__event_device(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -200,7 +200,7 @@ export async function load_ae_obj_li__event_device(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -310,7 +310,7 @@ export async function create_ae_obj__event_device(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -354,7 +354,7 @@ export async function delete_ae_obj_id__event_device(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -440,7 +440,7 @@ export async function update_ae_obj__event_device(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -567,7 +567,7 @@ export async function search__event_device(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -71,7 +71,7 @@ export async function load_ae_obj_id__event_file(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -173,7 +173,7 @@ export async function load_ae_obj_li__event_file(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -238,7 +238,7 @@ export async function create_event_file_obj_from_hosted_file_async(
console.log(result);
return result;
})
.catch(function (error) {
.catch(function (error: any) {
console.log(error);
return false; // Returning false since something may have gone wrong. Also more in line with what the API returns.
// return error;
@@ -662,7 +662,7 @@ export async function search__event_file(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -78,7 +78,7 @@ export async function load_ae_obj_id__event_location(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -238,7 +238,7 @@ export async function load_ae_obj_li__event_location(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -413,7 +413,7 @@ export async function create_ae_obj__event_location(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -457,7 +457,7 @@ export async function delete_ae_obj_id__event_location(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -543,7 +543,7 @@ export async function update_ae_obj__event_location(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -669,7 +669,7 @@ export async function search__event_location(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -90,7 +90,7 @@ export async function load_ae_obj_id__event_presentation(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -263,7 +263,7 @@ export async function load_ae_obj_li__event_presentation(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -418,7 +418,7 @@ export async function create_ae_obj__event_presentation(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -462,7 +462,7 @@ export async function delete_ae_obj_id__event_presentation(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -550,7 +550,7 @@ export async function update_ae_obj__event_presentation(
return null;
}
})
.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__event_presenter(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -217,7 +217,7 @@ export async function load_ae_obj_li__event_presenter(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -337,7 +337,7 @@ export async function create_ae_obj__event_presenter(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -381,7 +381,7 @@ export async function delete_ae_obj_id__event_presenter(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -469,7 +469,7 @@ export async function update_ae_obj__event_presenter(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -621,7 +621,7 @@ export async function search__event_presenter(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -94,7 +94,7 @@ export async function load_ae_obj_id__event_session(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -273,7 +273,7 @@ export async function load_ae_obj_li__event_session(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -434,7 +434,7 @@ export async function create_ae_obj__event_session(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -478,7 +478,7 @@ export async function delete_ae_obj_id__event_session(
method: method,
log_lvl: log_lvl
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -565,7 +565,7 @@ export async function update_ae_obj__event_session(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -933,7 +933,7 @@ export async function search__event_session(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {

View File

@@ -44,7 +44,7 @@ export async function handle_load_ae_obj_id__exhibit(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -124,7 +124,7 @@ export async function handle_load_ae_obj_li__exhibit(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -178,7 +178,7 @@ export async function handle_load_ae_obj_id__exhibit_tracking(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
});
@@ -239,7 +239,7 @@ export async function handle_load_ae_obj_li__exhibit_tracking(
return [];
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -302,7 +302,7 @@ export async function handle_create_ae_obj__exhibit_tracking(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {
@@ -353,7 +353,7 @@ export async function handle_update_ae_obj__exhibit_tracking(
return null;
}
})
.catch(function (error) {
.catch(function (error: any) {
console.log('No results returned or failed.', error);
})
.finally(function () {