Skip to content

Commit

Permalink
Merge pull request #160 from decentraland/fix/catalog-search-metadata
Browse files Browse the repository at this point in the history
fix: metadata join in the catalog search query
  • Loading branch information
juanmahidalgo authored Sep 10, 2024
2 parents d0d2db2 + 69785f5 commit c75a1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ports/catalog/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ const getLatestMetadataJoin = (filters: CatalogQueryFilters) => {
const getLatestMetadataCTE = () => {
return SQL`latest_metadata AS (
SELECT DISTINCT ON (wearable_id) wearable_id as item_id, id AS latest_metadata_id, item_type, wearable_id, emote_id
FROM metadata
FROM `.append(MARKETPLACE_SQUID_SCHEMA).append(SQL`.metadata
ORDER BY wearable_id DESC
)
`
`)
}

const getSearchCTEs = (filters: CatalogQueryFilters) => {
Expand Down

0 comments on commit c75a1cc

Please sign in to comment.