Skip to content

Commit

Permalink
feat: filter owner by the address and not the id (#1820)
Browse files Browse the repository at this point in the history
* feat: filter owner by the address and not the id

* fix: adding temp version of the content validor for testing

* fix: upadte content validator version

* Revert "fix: upadte content validator version"

This reverts commit dcb93d5.

* Revert "fix: adding temp version of the content validor for testing"

This reverts commit 954619a.

* fix: upadte content validator version

---------

Co-authored-by: Matias Pentreath <[email protected]>
  • Loading branch information
juanmahidalgo and pentreathm authored Dec 4, 2024
1 parent c7274be commit 6461a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lambdas/src/ports/the-graph/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ query ThirdPartyResolver($id: String!) {

const ITEMS_BY_OWNER = `
query itemsByOwner($owner: String, $item_types:[String], $first: Int, $start: String) {
nfts(where: {owner: $owner, searchItemType_in: $item_types, id_gt: $start}, first: $first) {
nfts(where: {owner_: {address: $owner}, searchItemType_in: $item_types, id_gt: $start}, first: $first) {
id
urn
collection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe('getWearablesByOwner', () => {

const query = `
query itemsByOwner($owner: String, $item_types:[String], $first: Int, $start: String) {
nfts(where: {owner: $owner, searchItemType_in: $item_types, id_gt: $start}, first: $first) {
nfts(where: {owner_: {address: $owner}, searchItemType_in: $item_types, id_gt: $start}, first: $first) {
id
urn
collection {
Expand Down

0 comments on commit 6461a0a

Please sign in to comment.