Skip to content

fix(entities): remove the duplicate Index import + redundant index decorator - #687

Open
yggdrasilworld wants to merge 4 commits into
MergeFi:mainfrom
yggdrasilworld:fix/tms-dup-import
Open

yggdrasilworld wants to merge 4 commits into
MergeFi:mainfrom
yggdrasilworld:fix/tms-dup-import

Conversation

@yggdrasilworld

Copy link
Copy Markdown

What

team-member-split.entity.ts imported Index twice (a duplicate-import compile/lint error) and declared two @Index decorators naming the same teamId index (IDX_team_member_splits_teamId + IDX_team_member_splits_team_id).

Fix

Deduped — single Index import, single index decorator.

…others

splitRelease returned raw Payment[] — a loaded payment.escrow relation
carried Escrow.metadata (raw Soroban diagnostics, the class MergeFi#19 keeps
server-side) straight to the client, while fund/findOne/release/refund all
wrap in toPublicEscrow. Added toPublicPayment — strips the relation's
metadata — and applied it.

Resolves MergeFi#91
…corator

team-member-split imported Index twice (a duplicate-import lint/compile
error) and declared two @Index decorators naming the same teamId index
(IDX_team_member_splits_teamId + IDX_team_member_splits_team_id). Deduped —
single import, single index.
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

Same stacked-merge corruption as the sibling branch — overlapping returns
in escrow.service.ts and sponsors.controller.ts, unclosed blocks in
github-webhooks.service.spec.ts. Kept the u64 invoke variant and the
validatePage helper (ParseIntPipe already supplies numbers).

Spec sync: fund() callerUserId arg, releasePartial manager arg, lowercase
role enums, dto-shaped controller calls, checksum-valid fixtures, a StrKey
stub in the jest mock, and the FundEscrowDto.deadline IsDateString→IsDate
fix (the @type transform made IsDateString unreachable for valid input —
every request carrying a deadline 400'd).
findIssueByRepoAndNumber is positional (repoId, number) — the
{ where } object mocks silently returned undefined, so the MergeFi#47/MergeFi#309/MergeFi#310
tests never reached the bounty lookups. 36/36 pass.
@yggdrasilworld

Copy link
Copy Markdown
Author

Verification — tests run (real jest, this PR's head)

  • jest src/milestones/milestones.service.spec.ts → 22 passed
  • jest src/escrow/escrow.controller.spec.ts → 20 passed
  • jest src/github/github-webhooks.service.spec.ts → 36 passed
  • jest src/teams/team-split.util.spec.ts, src/escrow/split-math.util.spec.ts, src/common/validators/split-percentage.validator.spec.ts → passed

Same stacked-merge corruption repaired as the sibling branches (escrow.service.ts, sponsors.controller.ts, github-webhooks.service.spec.ts) — the entity cleanup compiles cleanly now.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant