From 0330ca651466b7c79af19d61b1e530f513b2905b Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Tue, 10 Dec 2024 23:11:20 +0100 Subject: [PATCH] fix: remove console.logs --- src/ports/nfts/component.ts | 6 ++---- src/ports/nfts/queries.ts | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ports/nfts/component.ts b/src/ports/nfts/component.ts index 55c804b..5bd194b 100644 --- a/src/ports/nfts/component.ts +++ b/src/ports/nfts/component.ts @@ -27,13 +27,11 @@ export function createNFTsComponent(components: Pick(getNFTsQuery(nftFilters)) + const nftsQuery = getNFTsQuery(nftFilters) + const nfts = await pg.query(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(query) - console.log('orders', orders.rows) const landNftIds = nfts.rows .filter(nft => nft.category === NFTCategory.PARCEL || nft.category === NFTCategory.ESTATE) diff --git a/src/ports/nfts/queries.ts b/src/ports/nfts/queries.ts index ef59b43..cb854aa 100644 --- a/src/ports/nfts/queries.ts +++ b/src/ports/nfts/queries.ts @@ -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 `