Browse Source

replace 10 sites with all

main
matthew 2 years ago
parent
commit
26dc202de5
  1. 2
      searching-front/app/core/pages/State/State.tsx
  2. 1
      searching-front/app/stateSites/queries/getLastWeekNewSites.ts
  3. 2
      searching-front/services/parser.ts

2
searching-front/app/core/pages/State/State.tsx

@ -111,7 +111,7 @@ const State = ({
</div>
</div>
<div className={s.newestTitle}>
10 newest <span className={s.newestTitleTon}>TON</span> sites
Newest <span className={s.newestTitleTon}>TON</span> sites
</div>
<div className={s.newestListWrapper}>
{lastWeekNewSites.map((i) => (

1
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 },
})

2
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({

Loading…
Cancel
Save