Skip to content

Commit

Permalink
fix: join individual tree data against wallet schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 4, 2021
1 parent 64b9acd commit 024a304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/sqls/SQLTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class SQLTree{
ON planter.id = trees.planter_id
LEFT JOIN tree_species ON
trees.species_id = tree_species.id
LEFT JOIN token ON token.capture_id = trees.uuid
LEFT JOIN entity ON entity.id = token.entity_id
LEFT JOIN token ON wallet.token.capture_id::text = trees.uuid
LEFT JOIN wallet ON wallet.id = token.wallet_id
WHERE
trees.id = $1 AND trees.active = true
`,
Expand Down

0 comments on commit 024a304

Please sign in to comment.