Skip to content

Commit

Permalink
fix: SQL syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jan 17, 2025
1 parent 7eca6e3 commit bb70343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ports/nfts/ensQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function getENSs(nftFilters: GetNFTsFilters): SQLStatement {
.append(ids ? SQL` AND id = ANY(${ids}) ` : SQL``)
.append(
SQL`
)
),
`
.append(getTradesCTE(nftFilters, false))
.append(
Expand Down
2 changes: 2 additions & 0 deletions src/ports/nfts/landQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function getOpenTradesCTE(filters: GetNFTsFilters): SQLStatement {

export function getLandsOnSaleQuery(filters: GetNFTsFilters) {
return getOpenOrderNFTsCTE(filters)
.append(SQL`,`)
.append(getTradesCTE(filters))
.append(getOpenTradesCTE(filters))
.append(
Expand Down Expand Up @@ -310,6 +311,7 @@ export function getAllLANDsQuery(filters: GetNFTsFilters) {
WHERE o.status = 'open'
AND o.expires_normalized > NOW()
)`
.append(SQL`,`)
.append(getTradesCTE(filters))
.append(getOpenTradesCTE(filters))
.append(
Expand Down

0 comments on commit bb70343

Please sign in to comment.