From 3493cfbf5632b522d975e3eed8c8f4a25c67288e Mon Sep 17 00:00:00 2001 From: matthew Date: Wed, 19 Oct 2022 01:51:36 +0400 Subject: [PATCH] add mobile version for balance dashboard --- searching-front/services/domain-watcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searching-front/services/domain-watcher.ts b/searching-front/services/domain-watcher.ts index 53d3517..36d2103 100644 --- a/searching-front/services/domain-watcher.ts +++ b/searching-front/services/domain-watcher.ts @@ -47,12 +47,12 @@ const upsertDmn = async ( }) } -const wait = (time: number) => new Promise((resolve) => setTimeout(() => resolve(true), time)) +const wait = (time: number) => new Promise((resolve) => setTimeout(() => resolve(true), time * 1000)) const searchNFTItems = async ({ limit, offset }: SearchNFTItemsParams) => { try { console.log(`Start search limit:${limit}, offset:${offset}`) - await wait(1000) + await wait(1) const { data } = await axios.get( `https://tonapi.io/v1/nft/searchItems?collection=EQC3dNlesgVD8YbAazcauIrXBPfiVhMMr5YYk2in0Mtsz0Bz&include_on_sale=false&limit=${limit}&offset=${offset}`, {