From 649ec35ad543c44fd6eb73ee18a184952b9e7598 Mon Sep 17 00:00:00 2001 From: SGiaccobasso Date: Thu, 19 Sep 2024 22:25:15 -0300 Subject: [PATCH 1/2] fix: search interchain tokens query searching only first chain (#454) --- .changeset/orange-dodos-sparkle.md | 5 +++++ .../server/routers/interchainToken/searchInterchainToken.ts | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/orange-dodos-sparkle.md diff --git a/.changeset/orange-dodos-sparkle.md b/.changeset/orange-dodos-sparkle.md new file mode 100644 index 000000000..442516205 --- /dev/null +++ b/.changeset/orange-dodos-sparkle.md @@ -0,0 +1,5 @@ +--- +"@axelarjs/maestro": patch +--- + +fix search interchain tokens query issue where it was only looking at the results for the first chain searched diff --git a/apps/maestro/src/server/routers/interchainToken/searchInterchainToken.ts b/apps/maestro/src/server/routers/interchainToken/searchInterchainToken.ts index 9b3f07854..aed607e05 100644 --- a/apps/maestro/src/server/routers/interchainToken/searchInterchainToken.ts +++ b/apps/maestro/src/server/routers/interchainToken/searchInterchainToken.ts @@ -299,9 +299,8 @@ async function scanChains( return null; }); }); - const results = await Promise.all(promises); - const validResult = results.find((result) => result !== null); + const validResult = results.find((result) => result); return validResult || null; } From 7b582ae4fa9fc0feb91b1f7eae136c1fb1a327b5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:53:14 -0300 Subject: [PATCH 2/2] [changesets] Apply version updates (#455) Co-authored-by: github-actions[bot] --- .changeset/orange-dodos-sparkle.md | 5 ----- apps/maestro/CHANGELOG.md | 6 ++++++ apps/maestro/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/orange-dodos-sparkle.md diff --git a/.changeset/orange-dodos-sparkle.md b/.changeset/orange-dodos-sparkle.md deleted file mode 100644 index 442516205..000000000 --- a/.changeset/orange-dodos-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@axelarjs/maestro": patch ---- - -fix search interchain tokens query issue where it was only looking at the results for the first chain searched diff --git a/apps/maestro/CHANGELOG.md b/apps/maestro/CHANGELOG.md index 9e1264d92..bd7f7ce7a 100644 --- a/apps/maestro/CHANGELOG.md +++ b/apps/maestro/CHANGELOG.md @@ -1,5 +1,11 @@ # @axelarjs/maestro +## 0.3.26 + +### Patch Changes + +- [#454](https://github.com/axelarnetwork/axelarjs/pull/454) [`649ec35ad543c44fd6eb73ee18a184952b9e7598`](https://github.com/axelarnetwork/axelarjs/commit/649ec35ad543c44fd6eb73ee18a184952b9e7598) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - fix search interchain tokens query issue where it was only looking at the results for the first chain searched + ## 0.3.25 ### Patch Changes diff --git a/apps/maestro/package.json b/apps/maestro/package.json index 23be1bff0..b255198c8 100644 --- a/apps/maestro/package.json +++ b/apps/maestro/package.json @@ -1,6 +1,6 @@ { "name": "@axelarjs/maestro", - "version": "0.3.25", + "version": "0.3.26", "private": true, "publishConfig": { "access": "restricted"