Update to all catch functions.
This commit is contained in:
@@ -117,7 +117,7 @@ export let delete_object = async function delete_object(
|
||||
// console.log(response.data);
|
||||
// return response.data;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// if (error.response && error.response.status === 404) {
|
||||
// return null; // Returning null since there were no results
|
||||
// }
|
||||
|
||||
@@ -163,7 +163,7 @@ export async function get_ae_obj_id_crud(
|
||||
timeout: timeout,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('API GET CRUD object ID request failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ export let get_object = async function get_object(
|
||||
return return_data;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
// Handle the common and expected 404 "error" first
|
||||
if (error.response && error.response.status === 404) {
|
||||
if (log_lvl) {
|
||||
@@ -392,7 +392,7 @@ export let get_object = async function get_object(
|
||||
return response;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
// Handle the common and expected 404 "error" first
|
||||
if (error.response && error.response.status === 404) {
|
||||
if (log_lvl) {
|
||||
|
||||
@@ -266,7 +266,7 @@ export let post_object = async function post_object(
|
||||
// }
|
||||
// //return response.data;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// if (error.response && error.response.status === 404) {
|
||||
// return null; // Returning null since there were no results
|
||||
// }
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -245,7 +245,7 @@ async function handle_input_upload_files(input_upload_files, form_kv, task_id) {
|
||||
// .then(function (hosted_file_data) {
|
||||
// return hosted_file_data;
|
||||
// })
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
@@ -205,7 +205,7 @@ async function handle_input_upload_files(
|
||||
.then(function (hosted_file_data) {
|
||||
return hosted_file_data;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
@@ -130,7 +130,7 @@ async function handle_load_ae_obj_id__site_domain(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -282,7 +282,7 @@ async function handle_load_ae_obj_code__data_store(
|
||||
}
|
||||
return return_this;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('*ae_func* No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -342,7 +342,7 @@ async function handle_update_ae_obj_id_crud(
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong patching the record.');
|
||||
console.log(error);
|
||||
return false;
|
||||
@@ -568,7 +568,7 @@ async function update_ae_obj_id_crud_v2(
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong patching the record.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
@@ -48,7 +48,7 @@ export async function load_ae_obj_id__activity_log(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -122,7 +122,7 @@ export async function load_ae_obj_li__activity_log(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -176,7 +176,7 @@ export async function create_ae_obj__activity_log(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -232,7 +232,7 @@ export async function update_ae_obj__activity_log(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
|
||||
@@ -64,7 +64,7 @@ export async function load_ae_obj_li__country(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ export async function load_ae_obj_li__country_subdivision(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function load_ae_obj_id__hosted_file(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -133,7 +133,7 @@ export async function load_ae_obj_li__hosted_file(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -208,7 +208,7 @@ export async function delete_ae_obj_id__hosted_file(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ export async function load_ae_obj_id__person(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -202,7 +202,7 @@ export async function load_ae_obj_li__person(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -283,7 +283,7 @@ export async function create_ae_obj__person(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -327,7 +327,7 @@ export async function delete_ae_obj_id__person(
|
||||
method: method,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(async function () {
|
||||
|
||||
@@ -65,7 +65,7 @@ export async function load_ae_obj_li__time_zone(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ export async function auth_ae_obj__username_password(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -125,7 +125,7 @@ export async function auth_ae_obj__user_id_user_auth_key(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -212,7 +212,7 @@ export async function send_email_auth_ae_obj__user_id(
|
||||
// return null;
|
||||
// }
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('No results returned or failed.', error);
|
||||
// });
|
||||
|
||||
@@ -269,7 +269,7 @@ export async function qry_ae_obj_li__user_email(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -328,7 +328,7 @@ export async function auth_ae_obj__user_id_change_password(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -91,7 +91,7 @@ export async function load_ae_obj_id__journal(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -367,7 +367,7 @@ export async function create_ae_obj__journal(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -411,7 +411,7 @@ export async function delete_ae_obj_id__journal(
|
||||
method: method,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(async function () {
|
||||
|
||||
@@ -78,7 +78,7 @@ export async function load_ae_obj_id__journal_entry(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -181,7 +181,7 @@ export async function load_ae_obj_li__journal_entry(
|
||||
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__journal_entry(
|
||||
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__journal_entry(
|
||||
method: method,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -515,7 +515,7 @@ export async function qry__journal_entry(
|
||||
// // return null;
|
||||
// // }
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('No results returned or failed.', error);
|
||||
// })
|
||||
// .finally(function () {
|
||||
|
||||
@@ -88,7 +88,7 @@ export async function load_ae_obj_id__post(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -268,7 +268,7 @@ export async function load_ae_obj_li__post(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -392,7 +392,7 @@ export async function create_ae_obj__post(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -436,7 +436,7 @@ export async function delete_ae_obj_id__post(
|
||||
method: method,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -771,7 +771,7 @@ export async function qry__post(
|
||||
// return [];
|
||||
// }
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('No results returned or failed.', error);
|
||||
// })
|
||||
// .finally(function () {
|
||||
|
||||
@@ -85,7 +85,7 @@ export async function load_ae_obj_id__post_comment(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -185,7 +185,7 @@ export async function load_ae_obj_li__post_comment(
|
||||
return [];
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -274,7 +274,7 @@ export async function create_ae_obj__post_comment(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
@@ -318,7 +318,7 @@ export async function delete_ae_obj_id__post_comment(
|
||||
method: method,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
})
|
||||
.finally(function () {
|
||||
|
||||
@@ -58,7 +58,7 @@ async function load_ae_obj_id__sponsorship_cfg(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
@@ -119,7 +119,7 @@ async function load_ae_obj_id__sponsorship(
|
||||
return null;
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('No results returned or failed.', error);
|
||||
});
|
||||
|
||||
|
||||
@@ -924,7 +924,7 @@ exports.open_local_file = async function ({local_file_path, filename}) {
|
||||
// // result.then(function (response) {
|
||||
// // console.log('Downloaded!!!???');
|
||||
// // return true;
|
||||
// // }).catch(function (error) {
|
||||
// // }).catch(function (error: any) {
|
||||
// // console.log(error);
|
||||
// // return false;
|
||||
// // });
|
||||
@@ -979,7 +979,7 @@ async function check_file_cache({api_base_url, local_file_cache_path, event_file
|
||||
// result.then(function (response) {
|
||||
// console.log('Downloaded!!!???');
|
||||
// return true;
|
||||
// }).catch(function (error) {
|
||||
// }).catch(function (error: any) {
|
||||
// console.log(error);
|
||||
// return false;
|
||||
// });
|
||||
|
||||
@@ -197,7 +197,7 @@ async function handle_obj_field_patch(new_field_value: any) {
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
patch_status = 'Error during PATCH';
|
||||
console.log('Something went wrong patching the record.');
|
||||
console.log(error);
|
||||
|
||||
@@ -231,7 +231,7 @@ async function load_data_store(
|
||||
ds_loading_status = '-- not found --';
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log(`Something went wrong. for code ${code}`);
|
||||
console.log(error);
|
||||
ds_loading_status = '-- error --';
|
||||
@@ -418,7 +418,7 @@ async function handle_create__data_store({
|
||||
}
|
||||
return create__obj_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
@@ -455,7 +455,7 @@ async function handle_update__data_store({
|
||||
}
|
||||
return update__obj_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
@@ -228,7 +228,7 @@ async function load_data_store(
|
||||
// console.log(`ae_e_data_store: Not in browser. Not caching.`);
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log(`Something went wrong. for code ${code}`);
|
||||
console.log(error);
|
||||
ds_loading_status = 'error';
|
||||
@@ -424,7 +424,7 @@ async function handle_create__data_store(
|
||||
}
|
||||
return create__obj_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
@@ -469,7 +469,7 @@ async function handle_update__data_store(
|
||||
}
|
||||
return update__obj_result;
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function (error: any) {
|
||||
console.log('Something went wrong.');
|
||||
console.log(error);
|
||||
return false;
|
||||
|
||||
@@ -120,7 +120,7 @@ async function process_file_list(file_list) {
|
||||
// file_data['hash_sha256'] = hash_hex;
|
||||
// return hash_hex;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('Something went wrong?', error);
|
||||
// });
|
||||
|
||||
@@ -146,7 +146,7 @@ async function process_file_list(file_list) {
|
||||
// // console.log(`File hash hex? ${result}`);
|
||||
// // return hash_hex;
|
||||
// // })
|
||||
// // .catch(function (error) {
|
||||
// // .catch(function (error: any) {
|
||||
// // console.log('No results returned or failed.', error);
|
||||
// // });
|
||||
// // file_data['hash_sha256'] = file_reader.readAsArrayBuffer(file_item);
|
||||
|
||||
@@ -119,7 +119,7 @@ async function process_file_list(file_list) {
|
||||
// file_data['hash_sha256'] = hash_hex;
|
||||
// return hash_hex;
|
||||
// })
|
||||
// .catch(function (error) {
|
||||
// .catch(function (error: any) {
|
||||
// console.log('Something went wrong?', error);
|
||||
// });
|
||||
|
||||
@@ -145,7 +145,7 @@ async function process_file_list(file_list) {
|
||||
// // console.log(`File hash hex? ${result}`);
|
||||
// // return hash_hex;
|
||||
// // })
|
||||
// // .catch(function (error) {
|
||||
// // .catch(function (error: any) {
|
||||
// // console.log('No results returned or failed.', error);
|
||||
// // });
|
||||
// // file_data['hash_sha256'] = file_reader.readAsArrayBuffer(file_item);
|
||||
|
||||
Reference in New Issue
Block a user