(id: SessionID)
| 54 | } |
| 55 | |
| 56 | const share = (id: SessionID) => |
| 57 | Effect.gen(function* () { |
| 58 | const { db } = yield* Database.Service |
| 59 | return yield* db |
| 60 | .select() |
| 61 | .from(SessionShareTable) |
| 62 | .where(eq(SessionShareTable.session_id, id)) |
| 63 | .get() |
| 64 | .pipe(Effect.orDie) |
| 65 | }) |
| 66 | |
| 67 | const seed = (url: string, org?: string) => |
| 68 | AccountRepo.Service.use((repo) => |