From c68ee73a9f7a4329585815d5c941e6b43c5208af Mon Sep 17 00:00:00 2001 From: piercingl1ght Date: Tue, 7 Nov 2023 23:59:57 +0300 Subject: [PATCH] deleting influx in state + using run.ton instead of public proxy --- searching-front/app/core/pages/State/State.tsx | 6 ------ searching-front/services/domain-watcher.ts | 6 ++++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/searching-front/app/core/pages/State/State.tsx b/searching-front/app/core/pages/State/State.tsx index 477ce12..59ec707 100644 --- a/searching-front/app/core/pages/State/State.tsx +++ b/searching-front/app/core/pages/State/State.tsx @@ -92,13 +92,7 @@ const State = ({ lastWeekNewSites, }: StatePageProps) => { const nowDate = format(new Date(), "d MMMM").toLowerCase() - const [historyPeriod, setHistoryPeriod] = useState(InfluxPeriod.D) const { t } = useTranslation() - const [historyOfState] = useQuery(getHistoryOfSitesState, historyPeriod, { - suspense: false, - keepPreviousData: true, - initialData: historyOfStatePreloaded, - }) return (
diff --git a/searching-front/services/domain-watcher.ts b/searching-front/services/domain-watcher.ts index 3224b12..3855ee8 100644 --- a/searching-front/services/domain-watcher.ts +++ b/searching-front/services/domain-watcher.ts @@ -61,6 +61,7 @@ const searchNFTItems = async ({ limit, offset }: SearchNFTItemsParams) => { }, } ) + console.log(`returning nft_items`) return data.nft_items } catch (e) { console.log("error fetch items", e) @@ -72,9 +73,9 @@ const portion = 500 const fetchTonSite = async (url: string) => { try { - const urlToFetch = `http://${url}/` + const urlToFetch = `http://${url}.run/` + // вот здесь ошибка с get-запросом в .ton сайты const response = await axios.get(urlToFetch, { - proxy: getTonProxy(), timeout: 30000 }) if (!response.data) { @@ -83,6 +84,7 @@ const fetchTonSite = async (url: string) => { } return url } catch (e) { + //console.log("throwing excep") // console.log('restart fetch domains',e) throw url }