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

@@ -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);

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);