(env: Env, ctx: ExecutionContext)
| 33 | }; |
| 34 | |
| 35 | export const getAxisRegistry = async (env: Env, ctx: ExecutionContext) => { |
| 36 | const value = await env.METADATA.get<AxisRegistry>( |
| 37 | METADATA_KEYS.axisRegistry, |
| 38 | { |
| 39 | type: 'json', |
| 40 | cacheTtl: KV_TTL, |
| 41 | }, |
| 42 | ); |
| 43 | |
| 44 | if (!value) { |
| 45 | return await updateAxisRegistry(env, ctx); |
| 46 | } |
| 47 | |
| 48 | return value; |
| 49 | }; |
no test coverage detected