(slug: string)
| 249 | const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId }); |
| 250 | |
| 251 | const getBySlugEntry = (slug: string) => |
| 252 | storage.toolkits |
| 253 | .query({ where: { slug } }) |
| 254 | .pipe( |
| 255 | Effect.map( |
| 256 | (entries) => entries.find((entry) => entry.owner === "org") ?? entries[0] ?? null, |
| 257 | ), |
| 258 | ); |
| 259 | |
| 260 | const requireToolkit = (toolkitId: string) => |
| 261 | getEntry(toolkitId).pipe( |
no outgoing calls
no test coverage detected