(slug: string)
| 295 | const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId }); |
| 296 | |
| 297 | const getBySlugEntry = (slug: string) => |
| 298 | storage.toolkits |
| 299 | .query({ where: { slug } }) |
| 300 | .pipe( |
| 301 | Effect.map( |
| 302 | (entries) => entries.find((entry) => entry.owner === "org") ?? entries[0] ?? null, |
| 303 | ), |
| 304 | ); |
| 305 | |
| 306 | const requireToolkit = (toolkitId: string) => |
| 307 | getEntry(toolkitId).pipe( |
no outgoing calls
no test coverage detected