()
| 6198 | b("id", "=", id); |
| 6199 | |
| 6200 | const artifactsList = (): Effect.Effect<readonly ArtifactSummary[], StorageFailure> => |
| 6201 | core |
| 6202 | .findMany("artifact", { |
| 6203 | // Newest first. `id` breaks ties so two artifacts sharing an |
| 6204 | // `updated_at` millisecond list in a repeatable order rather than |
| 6205 | // whatever the storage engine happens to return; which of the two |
| 6206 | // comes first is arbitrary, only its stability is guaranteed. |
| 6207 | orderBy: [ |
| 6208 | ["updated_at", "desc"], |
| 6209 | ["id", "desc"], |
| 6210 | ], |
| 6211 | select: ARTIFACT_SUMMARY_COLUMNS, |
| 6212 | }) |
| 6213 | .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary))); |
| 6214 | |
| 6215 | const artifactsGet = ( |
| 6216 | id: string, |
nothing calls this directly
no outgoing calls
no test coverage detected