From 26dc202de5f98ec0da346793cf425bd703d22880 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 15 Oct 2022 22:28:31 +0400 Subject: [PATCH] replace 10 sites with all --- searching-front/app/core/pages/State/State.tsx | 2 +- searching-front/app/stateSites/queries/getLastWeekNewSites.ts | 1 - searching-front/services/parser.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/searching-front/app/core/pages/State/State.tsx b/searching-front/app/core/pages/State/State.tsx index 8fade22..4585e5d 100644 --- a/searching-front/app/core/pages/State/State.tsx +++ b/searching-front/app/core/pages/State/State.tsx @@ -111,7 +111,7 @@ const State = ({
- 10 newest TON sites + Newest TON sites
{lastWeekNewSites.map((i) => ( diff --git a/searching-front/app/stateSites/queries/getLastWeekNewSites.ts b/searching-front/app/stateSites/queries/getLastWeekNewSites.ts index 3dbd165..57ebcf9 100644 --- a/searching-front/app/stateSites/queries/getLastWeekNewSites.ts +++ b/searching-front/app/stateSites/queries/getLastWeekNewSites.ts @@ -4,7 +4,6 @@ import db from "db" export default async function getLastWeekNewSites() { const lastWeekNewSites = await db.nftDomain.findMany({ orderBy: { firstAvailableDate: "desc" }, - take: 10, where: { available: true, blocked: false }, }) diff --git a/searching-front/services/parser.ts b/searching-front/services/parser.ts index 0e9ee7d..99ffed1 100644 --- a/searching-front/services/parser.ts +++ b/searching-front/services/parser.ts @@ -42,7 +42,7 @@ const indexWebsite = async (domain: string, path: string, subpages: SubPages = { const main = async () => { await Elastic.initElastic() const domains = await db.nftDomain.findMany({where:{available: true}}) - console.log('Find domains', domains) + console.log('Find domains', domains.map(item=>item.address)) if (domains) { for (const domain of domains) { await db.nftDomain.update({