Skip to content

Commit

Permalink
fix: marketplace queries to work in Subsquid as well (#3150)
Browse files Browse the repository at this point in the history
Co-authored-by: Melisa Anabella Rossi <[email protected]>
  • Loading branch information
juanmahidalgo and Melisa Anabella Rossi authored Aug 21, 2024
1 parent 0103c74 commit 72a57ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/api/marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const BATCH_SIZE = 1000

const getSubdomainQuery = () => gql`
query getUserNames($owner: String, $offset: Int) {
nfts(first: ${BATCH_SIZE}, skip: $offset, where: { owner: $owner, category: ens }) {
nfts(first: ${BATCH_SIZE}, skip: $offset, where: { owner_: { id: $owner }, category: ens }) {
ens {
subdomain
}
Expand All @@ -18,7 +18,7 @@ const getSubdomainQuery = () => gql`
`

const getOwnerByNameQuery = () => gql`
query getOwners($domains: [String], $offset: Int) {
query getOwners($domains: [String!], $offset: Int) {
nfts(first: ${BATCH_SIZE}, skip: $offset, where: { name_in: $domains, category: ens }) {
owner {
address
Expand Down

0 comments on commit 72a57ce

Please sign in to comment.