MCPcopy Create free account
hub / github.com/anders-swanson/oracle-database-code-samples / sampleLastmod

Function sampleLastmod

website/vite.config.ts:91–99  ·  view source on GitHub ↗
(sampleLastmods: Map<string, string>, sampleId: string)

Source from the content-addressed store, hash-verified

89}
90
91function sampleLastmod(sampleLastmods: Map<string, string>, sampleId: string) {
92 const lastmod = sampleLastmods.get(sampleId);
93
94 if (!lastmod) {
95 throw new Error(`Pattern route references missing sample detail ${sampleId}`);
96 }
97
98 return lastmod;
99}
100
101function buildRoutes() {
102 const catalog = readCatalogIndex();

Callers 1

buildRoutesFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected