Skip to content

Commit

Permalink
Updates queries for ANS to ignore expired names
Browse files Browse the repository at this point in the history
  • Loading branch information
kaw2k committed Mar 22, 2024
1 parent 07728a2 commit 83a2844
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/ans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetNamesQuery>({
Expand Down Expand Up @@ -492,6 +493,7 @@ export async function getDomainSubdomains(
...(args.options?.where ?? {}),
domain: { _eq: domain },
subdomain: { _neq: "" },
is_active: { _eq: true },
},
},
},
Expand Down

0 comments on commit 83a2844

Please sign in to comment.