Delete will now retry and no longer needs Axios. Code clean up. Bug fix when deleting a Journal Entry.

This commit is contained in:
Scott Idem
2025-05-07 18:12:43 -04:00
parent 86221e6aec
commit 2ff7b4fd70
4 changed files with 125 additions and 52 deletions

View File

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