(toolkitId: string)
| 258 | ); |
| 259 | |
| 260 | const requireToolkit = (toolkitId: string) => |
| 261 | getEntry(toolkitId).pipe( |
| 262 | Effect.flatMap((entry) => (entry ? Effect.succeed(entry) : fail("Toolkit not found."))), |
| 263 | ); |
| 264 | |
| 265 | const assertSlugAvailable = (slug: string, ignoreToolkitId?: string) => |
| 266 | storage.toolkits.query({ where: { slug } }).pipe( |
no test coverage detected