From c025e66cb9ebaae902d7ac388e2569b433cf334b Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:36:51 -0300 Subject: [PATCH 1/2] fix(license) - remove NEQ operator and filter the licenses in the client --- lib/services/arweave/arweave_service.dart | 1 + lib/services/arweave/graphql/queries/LicenseDataBundled.graphql | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/arweave/arweave_service.dart b/lib/services/arweave/arweave_service.dart index 0c1ff7f729..ad22d82488 100644 --- a/lib/services/arweave/arweave_service.dart +++ b/lib/services/arweave/arweave_service.dart @@ -262,6 +262,7 @@ class ArweaveService { yield licenseComposedQuery.data!.transactions.edges .map((e) => e.node) + .where(e) .toList(); } } diff --git a/lib/services/arweave/graphql/queries/LicenseDataBundled.graphql b/lib/services/arweave/graphql/queries/LicenseDataBundled.graphql index c6fe7719f5..5a2ddf97ae 100644 --- a/lib/services/arweave/graphql/queries/LicenseDataBundled.graphql +++ b/lib/services/arweave/graphql/queries/LicenseDataBundled.graphql @@ -1,7 +1,6 @@ query LicenseComposed($transactionIds: [ID!]) { transactions( ids: $transactionIds - tags: [{ name: "License", values: [""], op: NEQ }] ) { edges { node { From a9ebf05123eb2c32e81ea740dc8f42e7886d3ec8 Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:40:23 -0300 Subject: [PATCH 2/2] Update arweave_service.dart --- lib/services/arweave/arweave_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/arweave/arweave_service.dart b/lib/services/arweave/arweave_service.dart index ad22d82488..be80d6ecc4 100644 --- a/lib/services/arweave/arweave_service.dart +++ b/lib/services/arweave/arweave_service.dart @@ -262,7 +262,7 @@ class ArweaveService { yield licenseComposedQuery.data!.transactions.edges .map((e) => e.node) - .where(e) + .where((e) => e.tags.any((t) => t.name == 'License')) .toList(); } }