(row: typeof CredentialTable.$inferSelect)
| 54 | const { db } = yield* Database.Service |
| 55 | const decode = Schema.decodeUnknownSync(Value) |
| 56 | const stored = (row: typeof CredentialTable.$inferSelect) => { |
| 57 | if (!row.integration_id) return |
| 58 | return new Info({ |
| 59 | id: row.id, |
| 60 | integrationID: row.integration_id, |
| 61 | label: row.label, |
| 62 | value: decode(row.value), |
| 63 | }) |
| 64 | } |
| 65 | |
| 66 | return Service.of({ |
| 67 | all: Effect.fn("Credential.all")(function* () { |
no test coverage detected