(externalId: string)
| 7134 | // `tenant` clause here: the tenant policy adds it to every read, the |
| 7135 | // same way `touchSubject` relies on it. |
| 7136 | const getSubject = (externalId: string): Effect.Effect<AdminSubject | null, StorageFailure> => |
| 7137 | platformCore |
| 7138 | .findFirst("subject", { |
| 7139 | where: (b: AnyCb) => b("external_id", "=", externalId), |
| 7140 | }) |
| 7141 | .pipe(Effect.map((row) => (row === null ? null : rowToAdminSubject(row)))); |
| 7142 | |
| 7143 | const listSubjectConnections = ( |
| 7144 | externalId: string, |
no test coverage detected