You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Case ${caseNumber} already complete and up-to-date (lastUpdated=${zipCase.lastUpdated}); using cached data`
271
+
);
272
+
returnzipCase.fetchStatus;
273
+
}
274
+
275
+
console.log(
276
+
`Case ${caseNumber} lastUpdated (${zipCase.lastUpdated}) is older than version date ${CASE_SUMMARY_VERSION_DATE.toISOString()}; re-fetching case summary`
// Truly complete - has both ID and an up-to-date summary
61
+
console.log(`Case ${caseNumber} is complete with up-to-date summary schema, preserving`);
60
62
continue;
61
63
}elseif(caseId){
62
-
// Has ID but missing summary - treat as 'found' and queue for data retrieval
64
+
// Has ID but missing summary or summary schema is outdated - treat as 'found' and queue for data retrieval
63
65
console.log(
64
-
`Case ${caseNumber} has 'complete' status but missing summary, treating as 'found' and queueing for data retrieval`
66
+
`Case ${caseNumber} has 'complete' status but ${caseSummary ? 'summary is outdated' : 'missing summary'}; treating as 'found' and queueing for data retrieval`
65
67
);
66
68
67
-
// Update status to 'found' since we need to rebuild the summary
69
+
constnowString=newDate().toISOString();
70
+
71
+
// Update status to 'found', since we need to rebuild the summary
68
72
awaitStorageClient.saveCase({
69
73
caseNumber,
70
74
caseId,
71
75
fetchStatus: {status: 'found'},
72
-
lastUpdated: newDate().toISOString(),
76
+
lastUpdated: nowString,
73
77
});
74
78
75
79
// Also update the results object that will be returned to frontend
0 commit comments