MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / metadataWithLatestYear

Function metadataWithLatestYear

src/Data/UserData.js:272–278  ·  view source on GitHub ↗
(metadata)

Source from the content-addressed store, hash-verified

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

Callers 2

getMetadataFunction · 0.85
getMetadataBatchFunction · 0.85

Calls 1

Tested by

no test coverage detected