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