Browse Source

fix metrics

main
matthew 2 years ago
parent
commit
886e991f7c
  1. 2
      searching-front/app/search-requests/queries/getSearchResult.ts

2
searching-front/app/search-requests/queries/getSearchResult.ts

@ -31,7 +31,7 @@ export default resolver.pipe(resolver.zod(GetSearchRequest), async ({ text, page
const domainName = (text.replaceAll('.ton','')+'.ton').toLowerCase();
const result = await Elastic.search({ text, page })
const domain = await db.nftDomain.findFirst({ where:{domainName} })
const domain = await db.nftDomain.findFirst({ where:{domainName, available: true} })
return {
hits: result.hits.map((i) => processResult(i._source, text)),

Loading…
Cancel
Save