From a20bf3ea33e9066dffbf45178340c2420425c5b1 Mon Sep 17 00:00:00 2001 From: Lucas Magnus Date: Tue, 6 Feb 2024 16:11:01 -0300 Subject: [PATCH] fix get asset by id --- backend/internal/usecase/repo/asset_postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/usecase/repo/asset_postgres.go b/backend/internal/usecase/repo/asset_postgres.go index 4476f0bc..98b48966 100644 --- a/backend/internal/usecase/repo/asset_postgres.go +++ b/backend/internal/usecase/repo/asset_postgres.go @@ -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