()
| 231 | const storage = ctx.storage; |
| 232 | |
| 233 | const list = () => |
| 234 | storage.toolkits |
| 235 | .query({ orderBy: [{ field: "name" }] }) |
| 236 | .pipe( |
| 237 | Effect.map((entries) => |
| 238 | entries |
| 239 | .map(toolkitToResponse) |
| 240 | .sort( |
| 241 | (a, b) => |
| 242 | (a.owner === b.owner ? 0 : a.owner === "org" ? -1 : 1) || |
| 243 | a.name.localeCompare(b.name) || |
| 244 | a.slug.localeCompare(b.slug), |
| 245 | ), |
| 246 | ), |
| 247 | ); |
| 248 | |
| 249 | const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId }); |
| 250 |
no outgoing calls
no test coverage detected