()
| 277 | const storage = ctx.storage; |
| 278 | |
| 279 | const list = () => |
| 280 | storage.toolkits |
| 281 | .query({ orderBy: [{ field: "name" }] }) |
| 282 | .pipe( |
| 283 | Effect.map((entries) => |
| 284 | entries |
| 285 | .map(toolkitToResponse) |
| 286 | .sort( |
| 287 | (a, b) => |
| 288 | (a.owner === b.owner ? 0 : a.owner === "org" ? -1 : 1) || |
| 289 | a.name.localeCompare(b.name) || |
| 290 | a.slug.localeCompare(b.slug), |
| 291 | ), |
| 292 | ), |
| 293 | ); |
| 294 | |
| 295 | const getEntry = (toolkitId: string) => storage.toolkits.get({ key: toolkitId }); |
| 296 |
nothing calls this directly
no outgoing calls
no test coverage detected