( id: string, env: Env, ctx: ExecutionContext, )
| 19 | }; |
| 20 | |
| 21 | export const getVariableId = async ( |
| 22 | id: string, |
| 23 | env: Env, |
| 24 | ctx: ExecutionContext, |
| 25 | ) => { |
| 26 | const data = await getVariableList(env, ctx); |
| 27 | |
| 28 | if (!data[id]) { |
| 29 | return; |
| 30 | } |
| 31 | |
| 32 | return data[id]; |
| 33 | }; |
| 34 | |
| 35 | export const getAxisRegistry = async (env: Env, ctx: ExecutionContext) => { |
| 36 | const value = await env.METADATA.get<AxisRegistry>( |
no test coverage detected