From 83a28444148050a7cd3f35ce9d5f215f0466f357 Mon Sep 17 00:00:00 2001 From: Rasa Welcher Date: Fri, 22 Mar 2024 14:10:43 -0400 Subject: [PATCH] Updates queries for ANS to ignore expired names --- src/internal/ans.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal/ans.ts b/src/internal/ans.ts index 17300232c..6294f7747 100644 --- a/src/internal/ans.ts +++ b/src/internal/ans.ts @@ -345,6 +345,7 @@ export async function getName(args: { const where: CurrentAptosNamesBoolExp = { domain: { _eq: domainName }, subdomain: { _eq: subdomainName }, + is_active: { _eq: true }, }; const data = await queryIndexer({ @@ -492,6 +493,7 @@ export async function getDomainSubdomains( ...(args.options?.where ?? {}), domain: { _eq: domain }, subdomain: { _neq: "" }, + is_active: { _eq: true }, }, }, },