Skip to content

Commit

Permalink
fix get asset by id
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmagnus committed Feb 6, 2024
1 parent f260d2e commit a20bf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/usecase/repo/asset_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (r AssetRepo) GetAssetById(id string) (entity.Asset, error) {
d.id AS distributor_id, d.type AS distributor_type, d.funded AS distributor_funded,
dk.id AS distributor_key_id, dk.public_key AS distributor_key_public_key, dk.weight AS distributor_key_weight,
i.id AS issuer_id, i.type AS issuer_type, i.funded AS issuer_funded,
ik.id AS issuer_key_id, ik.public_key AS issuer_key_public_key, ik.weight AS issuer_key_weight,
ik.id AS issuer_key_id, ik.public_key AS issuer_key_public_key, ik.weight AS issuer_key_weight
FROM asset a
JOIN wallet d ON a.distributor_id = d.id
JOIN key dk ON d.id = dk.wallet_id
Expand Down

0 comments on commit a20bf3e

Please sign in to comment.