Delete will now retry and no longer needs Axios. Code clean up. Bug fix when deleting a Journal Entry.
This commit is contained in:
@@ -86,9 +86,7 @@ export let patch_object = async function patch_object(
|
||||
// Return the response data or metadata
|
||||
return return_meta ? json : json.data;
|
||||
} catch (error) {
|
||||
// if (log_lvl) {
|
||||
console.error(`API PATCH error on attempt ${attempt}:`, error);
|
||||
// }
|
||||
console.error(`API PATCH error on attempt ${attempt}:`, error);
|
||||
|
||||
// If this is the last attempt, return false
|
||||
if (attempt === retry_count) {
|
||||
|
||||
Reference in New Issue
Block a user