Skip to content

fix(wallet-api): stop transaction.id from clobbering token.id - #606

Merged
dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-transfer-token-ids-853
Oct 1, 2026
Merged

dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-transfer-token-ids-853

Conversation

@samwel141

@samwel141 samwel141 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Closes Greenstand/treetracker-wallet-app#853

Problem

Tokens in a transfer came back with the transaction row's id. token and transaction both have an id column, and an unqualified select('*') across the join let the joined table win. Every token link on a transfer was dead, and
the accept message named a token that did not exist.

Change

select('token.*'). One word.

This re-applies #564, which the rollback in #593 reverted.

Verification

  • Unit 243, integration 120, repository 31, eslint clean.
  • Integration: the id listed for a transfer resolves to a real token.

Tokens in a transfer came back with the transaction row's id, because
token and transaction both have an id column and an unqualified select
across the join let the joined table win. Every token link on a transfer
was dead, and the accept message named a token that did not exist.

Selecting token.* returns the real ids.

This re-applies Greenstand#564, which the rollback in Greenstand#593 reverted.

Closes Greenstand/treetracker-wallet-app#853
@dadiorchen
dadiorchen merged commit a5800f6 into Greenstand:keycloak Oct 1, 2026
1 check passed
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.44.0-keycloak.41 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants