From 886e991f7c96ebc2d10978bf2d135e0a3f12e1a1 Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 20 Oct 2022 01:51:28 +0400 Subject: [PATCH] fix metrics --- searching-front/app/search-requests/queries/getSearchResult.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searching-front/app/search-requests/queries/getSearchResult.ts b/searching-front/app/search-requests/queries/getSearchResult.ts index 5220b6f..b57053e 100644 --- a/searching-front/app/search-requests/queries/getSearchResult.ts +++ b/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)),