(metadata)
| 270 | } |
| 271 | |
| 272 | function metadataWithLatestYear(metadata) { |
| 273 | const result = metadata ?? {}; |
| 274 | return { |
| 275 | ...result, |
| 276 | latestYear: findLatestYearForApplicant(result.ApplicantIDs), |
| 277 | }; |
| 278 | } |
| 279 | |
| 280 | function displayNameFromMetadataCacheKey(key) { |
| 281 | return key.slice(0, -"-metadata".length); |
no test coverage detected