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