Skip to content

Commit

Permalink
fix: use uuid for capture id when matching captures in wallet for map
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 4, 2021
1 parent c902676 commit 902cb1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/models/sqls/SQLCase2.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class SQLCase2{
getJoin(){
let result = "";
if(this.wallet){
result += 'INNER JOIN wallet.token ON wallet.token.tree_id = trees.id \n';
result += 'INNER JOIN wallet.token ON wallet.token.capture_id = trees.uuid \n';
result += 'INNER JOIN wallet.wallet ON wallet.wallet.id = wallet.token.entity_id \n';
}
if(this.flavor){
Expand Down
2 changes: 1 addition & 1 deletion server/models/sqls/SQLCase3.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class SQLCase3{
getJoin(){
let result = "";
if(this.wallet){
result += 'INNER JOIN wallet.token ON wallet.token.tree_id = trees.id \n';
result += 'INNER JOIN wallet.token ON wallet.token.capture_id = trees.uuid \n';
result += 'INNER JOIN wallet.wallet ON wallet.wallet.id = wallet.token.entity_id \n';
}
if(this.flavor){
Expand Down
2 changes: 1 addition & 1 deletion server/models/sqls/SQLTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SQLTree{
ON planter.id = trees.planter_id
LEFT JOIN tree_species ON
trees.species_id = tree_species.id
LEFT JOIN token ON token.tree_id = trees.id
LEFT JOIN token ON token.capture_id = trees.uuid
LEFT JOIN entity ON entity.id = token.entity_id
WHERE
trees.id = $1 AND trees.active = true
Expand Down

0 comments on commit 902cb1b

Please sign in to comment.