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