Refresh erroneous documents to detect server-side fixes
- Include erroneous server documents in auto-refresh - Documents can transition from ERRONEOUS to SHIPPABLE when fixed on server - Clear error message when document status becomes non-erroneous - Properly handle status transitions in refresh flow Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
24daa4bf82
commit
e5f3f583d1
2 changed files with 13 additions and 4 deletions
|
|
@ -303,6 +303,11 @@ export async function updatePDFStatus(
|
|||
entry.contentHash = meta.contentHash;
|
||||
}
|
||||
|
||||
// Clear error message when transitioning to non-erroneous state
|
||||
if (status !== 'failed' && entry.errorMessage) {
|
||||
entry.errorMessage = undefined;
|
||||
}
|
||||
|
||||
// Set timestamps based on status
|
||||
if (status === 'in_basket' && !entry.uploadedAt) {
|
||||
entry.uploadedAt = Date.now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue