generated from coulomb/repo-seed
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user