diff --git a/src/ports/nfts/ensQueries.ts b/src/ports/nfts/ensQueries.ts index d036709..7cf1ca7 100644 --- a/src/ports/nfts/ensQueries.ts +++ b/src/ports/nfts/ensQueries.ts @@ -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( diff --git a/src/ports/nfts/landQueries.ts b/src/ports/nfts/landQueries.ts index 263826e..d11b190 100644 --- a/src/ports/nfts/landQueries.ts +++ b/src/ports/nfts/landQueries.ts @@ -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( @@ -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(