From 6461a0ac1cbd77cb2234e124d28dc6c8a0c84046 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Wed, 4 Dec 2024 14:49:07 +0100 Subject: [PATCH] feat: filter owner by the address and not the id (#1820) * 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 dcb93d531fbd6d920f46032ad6f002357293aa73. * Revert "fix: adding temp version of the content validor for testing" This reverts commit 954619a92fe2e9e188e74d9f0ac997b56ed15bf0. * fix: upadte content validator version --------- Co-authored-by: Matias Pentreath --- lambdas/src/ports/the-graph/queries.ts | 2 +- .../collections/controller/wearables/wearables-by-owner.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lambdas/src/ports/the-graph/queries.ts b/lambdas/src/ports/the-graph/queries.ts index a3a171800..2135e09e9 100644 --- a/lambdas/src/ports/the-graph/queries.ts +++ b/lambdas/src/ports/the-graph/queries.ts @@ -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 { diff --git a/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts b/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts index 9bbddf520..c16e8ac03 100644 --- a/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts +++ b/lambdas/test/apis/collections/controller/wearables/wearables-by-owner.spec.ts @@ -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 {