Skip to content

Commit

Permalink
Update selectOep4Tokens and selectOrc20Tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Jan 6, 2025
1 parent 1b3632c commit 562b480
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,26 @@
<trim prefix="order by" prefixOverrides=",">
<if test="ascending != null">
<foreach collection="ascending" item="sort">
, a.${sort}
<choose>
<when test="sort == 'address_count'">
, addressCount
</when>
<otherwise>
, a.${sort}
</otherwise>
</choose>
</foreach>
</if>
<if test="descending != null">
<foreach collection="descending" item="sort">
, a.${sort} desc
<choose>
<when test="sort == 'address_count'">
, addressCount desc
</when>
<otherwise>
, a.${sort} desc
</otherwise>
</choose>
</foreach>
</if>
</trim>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,26 @@
<trim prefix="order by" prefixOverrides=",">
<if test="ascending != null">
<foreach collection="ascending" item="sort">
, a.${sort}
<choose>
<when test="sort == 'address_count'">
, addressCount
</when>
<otherwise>
, a.${sort}
</otherwise>
</choose>
</foreach>
</if>
<if test="descending != null">
<foreach collection="descending" item="sort">
, a.${sort} desc
<choose>
<when test="sort == 'address_count'">
, addressCount desc
</when>
<otherwise>
, a.${sort} desc
</otherwise>
</choose>
</foreach>
</if>
</trim>
Expand Down

0 comments on commit 562b480

Please sign in to comment.