Skip to content

Commit

Permalink
Merge pull request #201 from decentraland/fix/remove-logs
Browse files Browse the repository at this point in the history
fix: remove console.logs
  • Loading branch information
juanmahidalgo authored Dec 10, 2024
2 parents d8e8758 + 0330ca6 commit 28db09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/ports/nfts/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ export function createNFTsComponent(components: Pick<AppComponents, 'dappsDataba

const listsServer = await config.requireString('DCL_LISTS_SERVER')
const nftFilters = await getNFTFilters(filters, listsServer, rentals)
const nfts = await pg.query<DBNFT>(getNFTsQuery(nftFilters))
const nftsQuery = getNFTsQuery(nftFilters)
const nfts = await pg.query<DBNFT>(nftsQuery)
const nftIds = nfts.rows.map(nft => nft.id)
const query = getOrdersQuery({ nftIds, status: ListingStatus.OPEN })
console.log('query', query.text)
console.log('query', query.values)
const orders = await pg.query<DBOrder>(query)
console.log('orders', orders.rows)

const landNftIds = nfts.rows
.filter(nft => nft.category === NFTCategory.PARCEL || nft.category === NFTCategory.ESTATE)
Expand Down
1 change: 0 additions & 1 deletion src/ports/nfts/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ function getNFTLimitAndOffsetStatement(nftFilters?: GetNFTsFilters) {
}

export function getNFTsSortByStatement(sortBy?: NFTSortBy) {
console.log('sortBy', sortBy)
switch (sortBy) {
case NFTSortBy.NAME:
return SQL` ORDER BY name ASC `
Expand Down

0 comments on commit 28db09b

Please sign in to comment.