Skip to content

Commit

Permalink
credential_txs fix using distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Nov 30, 2021
1 parent 081fa7f commit 2713bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/grest/rpc/address/credential_txs.sql
Expand Up @@ -29,7 +29,7 @@ BEGIN
IF _after_block_height IS NOT NULL THEN
RETURN QUERY
SELECT
ENCODE(tx.hash, 'hex') as tx_hash
DISTINCT ON (tx.hash) ENCODE(tx.hash, 'hex') as tx_hash
FROM
public.tx_out
INNER JOIN public.tx ON tx_out.tx_id = tx.id
Expand All @@ -40,7 +40,7 @@ BEGIN
ELSE
RETURN QUERY
SELECT
ENCODE(tx.hash, 'hex') as tx_hash
DISTINCT ON (tx.hash) ENCODE(tx.hash, 'hex') as tx_hash
FROM
public.tx_out
INNER JOIN public.tx ON tx_out.tx_id = tx.id
Expand Down

0 comments on commit 2713bf8

Please sign in to comment.