Skip to content

Commit

Permalink
revert: collections-endpoint latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Sep 28, 2023
1 parent a63c3c5 commit 64b2488
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 440 deletions.
2 changes: 1 addition & 1 deletion src/Collection/Collection.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Collection extends Model<CollectionAttributes> {
const isInRemoteIds = SQL`collections.contract_address = ANY(${remoteIds})`
const sameStatusAndInTheBlockchain = SQL`(collection_curations.status = ${status} AND (${isInRemoteIds} OR (${isThirdParty})))`
const conditions = [
q ? SQL`collections.name % ${q} ` : undefined,
q ? SQL`collections.name ILIKE '%' || ${q} || '%'` : undefined,
assignee ? SQL`collection_curations.assignee = ${assignee}` : undefined,
address
? thirdPartyIds?.length
Expand Down
Loading

0 comments on commit 64b2488

Please sign in to comment.