Various bug fixes for CHOW

This commit is contained in:
Scott Idem
2024-04-01 20:48:16 -04:00
parent 78b5fc1068
commit 3abe92a2dc
11 changed files with 77 additions and 45 deletions

View File

@@ -188,7 +188,7 @@ export let get_object = async function get_object(
)
.then(function (response) {
if (log_lvl) {
console.log(`GET Response: status=${response.status} statusText=${response.statusText} baseURL=${response.config.baseURL} url=${response.config.url} method=${response.config.method} headers=${response.config.headers} params=${response.config.params}`);
console.log(`GET Response: status=${response.status} statusText=${response.statusText} baseURL=${response.config.baseURL} url=${response.config.url} method=${response.config.method} headers=${response.config.headers} params=${JSON.stringify(response.config.params)}`);
}
if (log_lvl > 1) {
console.log('GET Response:', response);
@@ -1205,9 +1205,9 @@ export let update_ae_obj_id_crud = async function update_ae_obj_id_crud({api_cfg
// Updated 2023-11-14
export let delete_ae_obj_id_crud = async function delete_ae_obj_id_crud({api_cfg, obj_type, obj_id, field_name, field_value, fields={}, key, jwt=null, headers={}, params={}, data={}, method='delete', return_meta=false, log_lvl=0}) {
export let delete_ae_obj_id_crud = async function delete_ae_obj_id_crud({api_cfg, obj_type, obj_id, key, jwt=null, headers={}, params={}, data={}, method='delete', return_meta=false, log_lvl=0}) {
if (log_lvl) {
console.log('*** delete_ae_obj_id_crud() ***');
console.log(`*** delete_ae_obj_id_crud() *** obj_type: ${obj_type} obj_id: ${obj_id}`);
}
data['super_key'] = key;