From 520a078dc87f8bc0734b8774771acf2acd76f30c Mon Sep 17 00:00:00 2001 From: Yggdrasil Date: Wed, 14 Oct 2026 01:59:34 -0400 Subject: [PATCH] fix(bounties): GET /bounties/:id loads the relations clients render MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit findOne() loaded no relations — clients got a bare bounty row with no issue (repo/issue-number link), claimedBy/sponsor, team, or escrow data. Load them so the detail-view has what it renders. Resolves #588 --- src/bounties/bounties.service.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/bounties/bounties.service.ts b/src/bounties/bounties.service.ts index ad762b2..b10cd3f 100644 --- a/src/bounties/bounties.service.ts +++ b/src/bounties/bounties.service.ts @@ -67,7 +67,14 @@ export class BountiesService { } async findOne(id: string): Promise { - const bounty = await this.bountyRepo.findOne({ where: { id } }); + // Load the relations clients render — issue (repo/issue-number link), + // claimedBy/sponsor (who owns it), team (the payout split), escrow + // (fund status). Without `relations` the response was a bare row and the + // UI got no issue/sponsor/team data (#588). + const bounty = await this.bountyRepo.findOne({ + where: { id }, + relations: ['issue', 'sponsor', 'claimedBy', 'team', 'escrow'], + }); if (!bounty) throw new NotFoundException(`Bounty ${id} not found`); return bounty; }